Broken DrawerLaytout with useNativeAnimations = true #2707
Labels
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
When the drawer opening animation is playing, if you hit the overlay to close the drawer, the display will stuck as the drawer is opened after the drawer closing animation is finished.
![drawerLayout](https://private-user-images.githubusercontent.com/34542126/292163375-d7ec0395-6479-4122-9f18-932a77007c51.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzE0NTgsIm5iZiI6MTczOTIzMTE1OCwicGF0aCI6Ii8zNDU0MjEyNi8yOTIxNjMzNzUtZDdlYzAzOTUtNjQ3OS00MTIyLTlmMTgtOTMyYTc3MDA3YzUxLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDIzNDU1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVmZGJhNGNlYTEyMGMxZGZmNzMzZTBmN2ZjMTBkZDJhNTkzNTRjNDRkMzBhNTNmNDlkZjZjMWY3OWVhNDA0NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KmutIE-HeKucW_tdlCLPci7E7utNQyjjEbZAb1fPlv8)
This is reproducible on various Android devices and iPhones (though all only tested with Expo Go).
When this bug occurs, the component's state and subcomponents' prop appear to be correct, i.e. the
drawerStyle
has correcttranslateX
, but it just won't render correctly.It could be get around by removing the animation at all:
Setting
useNativeAnimations={false}
when initializing<DrawerLayout />
could also get around with this.Steps to reproduce
create-expo-app
with the blank templateexpo install react-native-gesture-handler
App.js
:Snack or a link to a repository
https://snack.expo.dev/@smokovsky/drawertest
Gesture Handler version
2.12.0
React Native version
0.72.6
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
None
Build type
None
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: