[ios] useAnimatedKeyboard causes crash when reloading app
See original GitHub issueDescription
When using the useAnimatedKeyboard
hook on iOS, attempting to reload the app causes a crash.
I’ve observed this with:
-
react-native-reanimated
2.10.0
,2.11.0
and2.12.0
-
expo
46
and47
-
react-native
0.69
and0.70
-
in both debug and release schemes (on release, via expo’s
Updates.reloadAsync()
) -
on both the iOS simulator and a real device
-
Using JSC, the crash happens immediately.
-
Using hermes, sometimes the crash doesn’t happen until you focus a text input (presenting the keyboard) after reloading the app.
I created two snacks to demonstrate the crash:
- This snack, which crashes on reload
- And this snack, which does NOT crash on reload, is exactly the same, except it has
useAnimatedKeyboard()
commented out.
Steps to reproduce
- Add
useAnimatedKeyboard()
to any component that’s rendered in your app. - Reload the app.
- Observe the app crash.
Snack or a link to a repository
https://snack.expo.dev/@danscan/fa5482
Reanimated version
2.12.0
React Native version
0.70.5
Platforms
iOS
JavaScript runtime
JSC
Workflow
Expo managed workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
SwiftUI List reload causes crash | Apple Developer Forums
I get a crash when reloading a List based on some search results. The results may change out the sections and rows. The...
Read more >App crash when reload button is pressed - ios - Stack Overflow
Im using storyboard. Simply pressing alt and drag the button to my ViewController.swift and create the action IBAction. Where should i put this ......
Read more >Common Flutter errors
Introduction. This page explains several frequently-encountered Flutter framework errors and gives suggestions on how to resolve them.
Read more >Basic troubleshooting steps to fix most issues - Adobe Support
Many problems can occur when you use third-party fonts, including crashing or hangs when selecting the Type tool or when making the Character ......
Read more >Manually reloading your Flutter web app causes it to crash/get ...
For those of you working on a Flutter web app, when you manually reload the browser using its native reload button, does your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Got similar crash in iOS when tried to reload using expo
Updates.reloadAsync()
@Norfeldt I think this may be different, and not just an xcode version issue. I’m encountering it in debug mode on xcode 14.0.1, as well as in the Expo Snack I provided for repro. This also occurs in release builds and on real iPhones when reloading the app (e.g. via expo’s
Updates.reloadAsync()
)