-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: Document Picker crash on IOS #3581
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to suggest reducing this to 100ms, as 200ms is quite noticeable as a user. But that's how we got into this mess in the first place, so I won't block on that.
I checked that 100ms does not work. but I am looking into other factors which cause this setTimout. No luck so far. |
Great job finding the solution here @parasharrajat! 🎉 Do you know if there is an issue in the react-native-modal repo for this? It seems that |
They do seem to fix it here by calling it after state update. https://github.com/react-native-modal/react-native-modal/blob/b580105f4b2b4e1163bed1228f241b16ea17dacb/src/modal.tsx#L697. but I don't think it can be improved further but nobody knows. It could be an issue with the React-native modal. Not sure about opening another issue. there are a couple of closed ones there. |
@roryabraham it seems we missed the Slack Webhook Url Env for Gh actions. |
This is a known issue for GH Actions where your repo secrets randomly disappear for some workflow runs for no reason. 😠 |
Confirmed with @roryabraham that we are good to merge |
fix: Document Picker crash on IOS (cherry picked from commit 5a04371)
🚀 Cherry-picked to staging in version: 1.0.68-4🚀
|
🚀 Deployed to production in version: 1.0.68-4🚀
|
🚀 Deployed to staging in version: 1.0.68-5🚀
|
🚀 Deployed to production in version: 1.0.73-3🚀
|
Details
We had to put a delay between modal is closed and picker opens the document chooser.
Fixed Issues
Fixes #3543
Tests | QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
ios-picker.mp4
Android
1623693284878.mp4