-
-
Notifications
You must be signed in to change notification settings - Fork 988
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
DrawerLayout
throws errors originating from using setNativeProps
#2414
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
I am not aware of how the responsibilities are divided for this package, but could someone from the core team look into this issue, please? Maybe @j-piasecki or would you mind delegating? Thanks! |
Getting the same issue too. RN |
@j-piasecki any update on this matter? It would be nice to fix this issue and remove unnecessary patches from projects worldwide. If you need any help or additional information, please do not hesitate to let me know. Note: It is still not fixed in |
Actually @j-piasecki Do you already have that on your TODOs? |
You can use the alternative implementation using Reanimated instead of RN'a Animated here: https://github.com/software-mansion/react-native-gesture-handler/tree/main/example/src/new_api/betterHorizontalDrawer. You would have to copy the file, but it should be a drop-in replacement. |
@j-piasecki Thank you very much for the reply and the reference! :) Do you plan to move to the alternative implementation permanently in the future? |
That's definitely something to think about, although the new implementation depends on Reanimated, while both the old one and Gesture Handler itself do not. We'll need to discuss the best approach in this situation. |
Description
The function
setNativeProps
is not supported by the Fabric renderer. Therefore, the functionupdateShowing
provided in theDrawerLayout.tsx
component file outputs the following error/warningWarning: setNativeProps is not currently supported in Fabric
.Steps to reproduce
Use the
DrawerLayout
component and call either theopenDrawer
orcloseDrawer
function.Snack or a link to a repository
https://github.com/software-mansion/react-native-gesture-handler/blob/main/src/components/DrawerLayout.tsx#L430
Gesture Handler version
2.9.0
React Native version
0.71.3
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Fabric (New Architecture)
Build type
None
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: