Jelf Liang
Jelf Liang

Reputation: 71

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

Upvotes: 5

Views: 3847

Answers (3)

priyanka
priyanka

Reputation: 181

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/

Upvotes: 0

Wenchao Liu
Wenchao Liu

Reputation: 11

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.

Upvotes: 0

tnyN
tnyN

Reputation: 848

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.

Upvotes: 12

Related Questions