Skip to content

t.touchableOpacity.setOpacityTo is not a function #13

Description

@dcangulo

If you touch the switch once, it works just fine. But if you hold the switch and swipe it, it will throw the error t.touchableOpacity.setOpacityTo is not a function.

This issue occurs on iOS and Android but works fine on the web.

RN Version:

"react-native": "0.63.2"

The error occurs on both vanilla and expo react-native projects.

Commenting these lines will suppress the error without a noticeable difference:
https://github.com/prsn/react-native-toggle-switch/blob/master/scrollview-switch.js#L70
https://github.com/prsn/react-native-toggle-switch/blob/master/scrollview-switch.js#L74

Reproduce:
https://snack.expo.io/@dcangulo/rn-toggle-switch-error

Related references:
react/react-native#29272
expo/expo#9026

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions