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:
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
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:
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