You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: onPress callbacks are not consistently triggered when nested inside an <Interactable.View>. As shown in the example below, the <TouchableOpacity> has to be rapidly pressed between 10-50 times in order to have a chance of the onPress being triggered. Removing the <Interactable.View> resolves this issue and restores the reliable responsiveness of the onPress callback.
Note: This issue only occurs on a physical device (e.g. a Google Pixel XL). This behavior is not exhibited on an emulated Pixel XL (e.g. http://i.imgur.com/ZEbHu4m.png). Setting the animatedNativeDriver prop and disabling JS Dev Mode in android Dev settings (shown here) has no effect.
{DATA.filter.map( item =>
<Interactable.View
//animatedNativeDriver={true} // setting animatedNativeDriver to true did not help
initialPosition={{ x: 0, y: 0 }}
snapPoints={[{ x: 0, y: 0 }]}
key={item.id}
>
<TouchableOpacity
onPress={() => console.log('I was pressed!!!!!')}
>
</TouchableOpacity>
</Interactable.View>
)}
The text was updated successfully, but these errors were encountered:
dk0r
changed the title
onPress callbacks are inconsistently triggered when nested inside <Interactable.View>
onPress callbacks are not triggered from within <Interactable.View>
Aug 7, 2017
dk0r
changed the title
onPress callbacks are not triggered from within <Interactable.View>
[0.1.1 Bug] onPress callbacks are not triggered from within <Interactable.View>
Aug 7, 2017
dk0r
changed the title
[0.1.1 Bug] onPress callbacks are not triggered from within <Interactable.View>
[0.1.1 Bug] onPress callbacks not reliably triggered from inside <Interactable.View>
Aug 7, 2017
Issue:
onPress
callbacks are not consistently triggered when nested inside an<Interactable.View>
. As shown in the example below, the<TouchableOpacity>
has to be rapidly pressed between 10-50 times in order to have a chance of theonPress
being triggered. Removing the<Interactable.View>
resolves this issue and restores the reliable responsiveness of theonPress
callback.Note: This issue only occurs on a physical device (e.g. a Google Pixel XL). This behavior is not exhibited on an emulated Pixel XL (e.g. http://i.imgur.com/ZEbHu4m.png). Setting the
animatedNativeDriver
prop and disablingJS Dev Mode
in android Dev settings (shown here) has no effect.Versions used: [email protected], [email protected], [email protected]
The text was updated successfully, but these errors were encountered: