File tree Expand file tree Collapse file tree 5 files changed +369
-19
lines changed Expand file tree Collapse file tree 5 files changed +369
-19
lines changed Original file line number Diff line number Diff line change 9
9
import React from 'react' ;
10
10
import {
11
11
SafeAreaView ,
12
- StyleSheet ,
13
12
ScrollView ,
14
- View ,
15
- Text ,
16
13
StatusBar ,
14
+ StyleSheet ,
15
+ Text ,
16
+ View ,
17
17
} from 'react-native' ;
18
18
19
19
import {
20
- Header ,
21
- LearnMoreLinks ,
22
20
Colors ,
23
21
DebugInstructions ,
22
+ Header ,
23
+ LearnMoreLinks ,
24
24
ReloadInstructions ,
25
25
} from 'react-native/Libraries/NewAppScreen' ;
26
+ import { NavigationContainer } from '@react-navigation/native' ;
27
+ import { createStackNavigator } from '@react-navigation/stack' ;
26
28
27
29
const App : ( ) => React$Node = ( ) => {
28
30
return (
@@ -111,4 +113,16 @@ const styles = StyleSheet.create({
111
113
} ,
112
114
} ) ;
113
115
114
- export default App ;
116
+ const Stack = createStackNavigator ( ) ;
117
+
118
+ function Root ( ) {
119
+ return (
120
+ < NavigationContainer >
121
+ < Stack . Navigator >
122
+ < Stack . Screen name = "App" component = { App } />
123
+ </ Stack . Navigator >
124
+ </ NavigationContainer >
125
+ ) ;
126
+ }
127
+
128
+ export { Root } ;
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ android {
129
129
}
130
130
131
131
defaultConfig {
132
+ multiDexEnabled true
132
133
applicationId " com.testcicdreactnative"
133
134
minSdkVersion rootProject. ext. minSdkVersion
134
135
targetSdkVersion rootProject. ext. targetSdkVersion
@@ -178,6 +179,13 @@ android {
178
179
179
180
}
180
181
}
182
+
183
+ packagingOptions {
184
+ pickFirst ' **/armeabi-v7a/libc++_shared.so'
185
+ pickFirst ' **/x86/libc++_shared.so'
186
+ pickFirst ' **/arm64-v8a/libc++_shared.so'
187
+ pickFirst ' **/x86_64/libc++_shared.so'
188
+ }
181
189
}
182
190
183
191
dependencies {
Original file line number Diff line number Diff line change 1
- /**
2
- * @format
3
- */
4
-
1
+ import 'react-native-gesture-handler' ;
5
2
import { AppRegistry } from 'react-native' ;
6
- import App from './App' ;
3
+
4
+ import { Root } from './App' ;
7
5
import { name as appName } from './app.json' ;
8
6
9
- AppRegistry . registerComponent ( appName , ( ) => App ) ;
7
+ AppRegistry . registerComponent ( appName , ( ) => Root ) ;
Original file line number Diff line number Diff line change 10
10
"lint" : " eslint ."
11
11
},
12
12
"dependencies" : {
13
+ "@react-native-async-storage/async-storage" : " ^1.13.1" ,
14
+ "@react-native-community/masked-view" : " ^0.1.10" ,
15
+ "@react-navigation/native" : " ^5.8.2" ,
16
+ "@react-navigation/stack" : " ^5.11.1" ,
17
+ "lottie-ios" : " 3.1.8" ,
18
+ "lottie-react-native" : " ^3.5.0" ,
13
19
"react" : " 16.13.1" ,
14
- "react-native" : " 0.63.3"
20
+ "react-native" : " 0.63.3" ,
21
+ "react-native-device-info" : " ^7.0.2" ,
22
+ "react-native-fast-image" : " ^8.3.2" ,
23
+ "react-native-fs" : " ^2.16.6" ,
24
+ "react-native-gesture-handler" : " ^1.8.0" ,
25
+ "react-native-reanimated" : " ^1.13.1" ,
26
+ "react-native-safe-area-context" : " ^3.1.8" ,
27
+ "react-native-screens" : " ^2.12.0" ,
28
+ "react-native-svg" : " ^12.1.0" ,
29
+ "react-native-webview" : " ^10.10.0"
15
30
},
16
31
"devDependencies" : {
17
32
"@babel/core" : " ^7.8.4" ,
You can’t perform that action at this time.
0 commit comments