useNativeDriver with Custom Component Event doesn't work #79
Unanswered
grahammendick
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've very nearly finished updating my navigation library to work with the new architecture and I've run into a problem on Android. I can't get my custom Component's event to support
useNativeDriver
in the new React Native architecture. You can see what I mean in the videos below. In the first video you can see the 'World' text scales correctly on the old architecture. In the second video the 'World' text doesn't scale in the new React Native architecture (changinguseNativeDriver
to false will correctly scale the text).Reproduction of the problem
I've created a repository with a reproduction of the bug. The README in the repo contains the steps needed to recreate the problem. There are two apps in the repo, one built with the old architecture and the other built with the new architecture. You can see that the bug only happens on the new architecture. The only dependencies in the apps are the 3 packages that make up my navigation library.
You can see the 'World' text scales on the old architecture using the native driver.
Screen.Recording.2022-10-01.at.16.23.09.mov
But the 'World' text doesn't scale on the new architecture using the native driver.
Screen.Recording.2022-10-01.at.16.21.10.mov
Beta Was this translation helpful? Give feedback.
All reactions