[V1][iOS] How to implement AppDelegate.m for React Native 0.59
Issue Description
Hi there! We're still using react-native-navigation on v1 and are wondering how to implement the AppDelegate.m with the new structure for RN 0.59.
Steps to Reproduce / Code Snippets / Screenshots
You could use a fresh project.
react-native-init
yarn add [email protected]
Environment
- React Native Navigation version: 1.1.493
- React Native version: 0.59.0
- Platform(s) (iOS, Android, or both?): iOS
- Device info (Simulator/Device? OS version? Debug/Release?): ALL
@IanOnFire please see: https://github.com/wix/react-native-navigation/commit/57caacddfc5422c00f41b32e031a732ab503b7dc
It helped me to use V1 with RN059
@nethergrim, @IanOnFire, so how AppDelegate.m looks like?
@IanOnFire, hey guys, I do not understand, my project is even cannot build with v1 on rn59, so how you not only resolved issues but get it built?
ok guys, I do not exactly know what was my problem, I tried to re-create project and problem gone, and I just left AppDelegate.m as it was in old RNNv1 documented to make it work. Don't know if it is correct or not.
@alpamys-qanybet your AppDelegate.m should look like how it is described in the documentation of V1.
The commit referenced above ensures that it can understand the existing implementation of AppDelegate.m, so you should only update your navigation to include mentioned commit.
I can recommend updating your package.json to reference rnn like following:
"react-native-navigation": "wix/react-native-navigation#57caacddfc5422c00f41b32e031a732ab503b7dc"
I got an error when update code to this commit #4775 Dimensions.get("window").width returns zero in iOS when launch,#5248