Using React-Native has a long press error
Using TouchableHighlight And TouchableNativeFeedback
Attempted to transition from state RESPONDER_INACTIVE_PRESS_IN
to RESPONDER_ACTIVE_LONG_PRESS_IN
My code
A wrapper for making views respond properly to touches (Android only). On Android this component uses native state drawable to display touch feedback.
These long presses can be handled by passing a function to the onLongPress props of any of the "Touchable" components.
The TouchableNativeFeedback makes a view to response properly on touch. This component works only for Android operating system. It uses native state drawable to display the touch feedback. It supports only a single View instance as a child node.
A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view.
This issue usually only appears in android when you are debugging. This issue https://github.com/facebook/react-native/issues/5823 goes into further detail.
Try turning debugging off and see if you still get the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With