forked from benevbright/react-navigation-collapsible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (19 loc) · 824 Bytes
/
Makefile
File metadata and controls
19 lines (19 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
update-example-rn:
mkdir tmp
cp -r example/src example/App.tsx example/babel.config.js example/metro.config.js tmp
rm -rf example
npx react-native init example --template react-native-template-typescript
cp -r tmp/* example
rm -rf tmp
# uninstall @types/react-native
cd example && yarn remove @types/react-native
cd example && yarn add -D babel-plugin-module-resolver
# install react-navigation
cd example && yarn add @react-navigation/native
# install peer-dependencies
cd example && yarn add react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
# install @react-navigation/stack
cd example && yarn add @react-navigation/stack
# install prettier
cd example && yarn add -D prettier
cd example && cd ios && pod install