React Native TouchableNativeFeedback

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

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.

Aligning the clocks on your phone and computer may solve this problem. My experience is that the two clocks do not need to be exact match, just make sure they are not off by more than a few seconds. You can easily achieve this by adjusting one clock manually.

Yes the same issue I faced it, after a much more research I found its's solution that instead of using TouchableHighlight, you can use TouchableOpacity component . For detail refer this link -

http://androidseekho.com/others/reactnative/how-to-solve-touchable-longpressdelaytimeout-problem-in-react-native/

This problem occurs when you use remote debugging

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue