Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.1.1 Bug] onPress callbacks not reliably triggered from inside <Interactable.View> #134

Closed
dk0r opened this issue Aug 5, 2017 · 1 comment

Comments

@dk0r
Copy link

dk0r commented Aug 5, 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 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.

Versions used: [email protected], [email protected], [email protected]

   {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> 
    )}
@dk0r 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 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 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
@Inbal-Tish
Copy link
Collaborator

Closing this issue in favor of issue #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants