-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Native Animated Event issues #10021
Comments
+1 |
I'm experiencing this on 0.36. Native animation works fine, but onEndReached is never called. @nihgwu Did you manage to find a fix or a workaround? @janicduplessis This is a big deal I think .. Edit: Forgot to mention I'm seeing this on Android, have not tested iOS |
@ramilushev This issue should be on both platforms and I don't know how to fix it, still waiting for @janicduplessis 😔 |
The problem is that we don't send the event to JS if it is handled natively. I suggest removing this and always send the event. See https://github.com/facebook/react-native/blob/master/React/Base/RCTEventDispatcher.m#L149 and https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java#L117 We should also change the EventListener interfaces so they don't return a bool anymore. Let me know if one of you would like to send a PR, if not I'll try to work on this soon. |
This is solved in RN 0.40 by #10981 right? |
@AlbertBrand thanks for reminding, closing it. |
This is still an issue for me, I am using RN v0.43.2 I pass the The onScroll event is still not propagated and events such as @nihgwu could you share an example of how you got it to work? Thanks. |
I have the same problem, @nihgwu could you share an example? |
|
I've found some issues with the
Native Animated Event
onPress
of the touchable view is fired, that makesNative Animated Event
almost unavailable in real use case.onScroll
related events such asonEndReached
unavailable inListView
, because theonScroll
won't be called at all when turn onuseNativeDriver
, that breaks the common use case ofListView
too.I'm wondering is there any workaround for those issues, as I really need this
Native Animated Event
feature to improve the performance of my app. @janicduplessisThe text was updated successfully, but these errors were encountered: