Post

Replies

Boosts

Views

Activity

Reply to react-native ios app crashes immediately on simulators and TestFlight installs
Hello, I have run into a similar problem. In my expo application, I upgraded to React Navigation version 6. My application worked in development but crashed in production. The problem did appear to be related to the stack navigator code, as user ebarnett32 discovered. Declaring import 'react-native-gesture-handler'; at the top of all React components that used the stack navigator appears to have fixed my problem. However, I also have imported it in my application entry file (index.js or App.js). I have also removed all uses of the TouchableOpacity components imported from react-native-gesture-handler, replacing them with Pressable from the react native package, as suggested by sjoerdsantema. Therefore, it may have been a combination of the previous suggestions that fixed my issue.
Sep ’23