Files
react-navigation/packages/stack/example/package.json
Satyajit Sahoo 8b11e4df0c chore: reuse the stack code from react navigation 5
The code for the stack is almost the same as v5, with the only differences being the types and the navigation object. To avoid making same changes in 2 places which error-prone, I decided to reuse the same code. Due to the differences, it's not possible to just use it as a dependency, so I followed this approach:
- Copy the source files on post install and apply patches to make it work with React Navigation 4
- When we need to make changes, we can make them in v5 repo and update the version here, most of the time it wouldn't need any extra work
- If we need to make v4 specific changes, we can change the code in vendor/ and then re-generate the patch with `yarn patch`
2019-12-10 15:22:12 +01:00

41 lines
1.1 KiB
JSON

{
"name": "stackexample",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "expo start",
"native": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios"
},
"dependencies": {
"@react-native-community/masked-view": "0.1.5",
"expo": "^36.0.0",
"expo-asset": "~8.0.0",
"expo-barcode-scanner": "~8.0.0",
"expo-constants": "~8.0.0",
"hoist-non-react-statics": "^3.3.0",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-native": "0.61.4",
"react-native-gesture-handler": "~1.5.0",
"react-native-maps": "0.26.1",
"react-native-paper": "^2.15.2",
"react-native-reanimated": "~1.4.0",
"react-native-safe-area-context": "0.6.0",
"react-native-unimodules": "^0.7.0-rc.1",
"react-native-web": "^0.11.4",
"react-native-webview": "7.4.3",
"react-navigation": "^4.0.7",
"react-navigation-drawer": "^2.2.2",
"react-navigation-tabs": "^2.5.5"
},
"devDependencies": {
"babel-plugin-module-resolver": "^3.2.0",
"expo-cli": "^3.2.3"
},
"resolutions": {
"react-native-screens": "1.0.0-alpha.23"
}
}