Skip to content

Commit 29805ed

Browse files
committed
Make build more heavy
1 parent fe61ea3 commit 29805ed

File tree

5 files changed

+369
-19
lines changed

5 files changed

+369
-19
lines changed

App.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99
import React from 'react';
1010
import {
1111
SafeAreaView,
12-
StyleSheet,
1312
ScrollView,
14-
View,
15-
Text,
1613
StatusBar,
14+
StyleSheet,
15+
Text,
16+
View,
1717
} from 'react-native';
1818

1919
import {
20-
Header,
21-
LearnMoreLinks,
2220
Colors,
2321
DebugInstructions,
22+
Header,
23+
LearnMoreLinks,
2424
ReloadInstructions,
2525
} from 'react-native/Libraries/NewAppScreen';
26+
import {NavigationContainer} from '@react-navigation/native';
27+
import {createStackNavigator} from '@react-navigation/stack';
2628

2729
const App: () => React$Node = () => {
2830
return (
@@ -111,4 +113,16 @@ const styles = StyleSheet.create({
111113
},
112114
});
113115

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};

android/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ android {
129129
}
130130

131131
defaultConfig {
132+
multiDexEnabled true
132133
applicationId "com.testcicdreactnative"
133134
minSdkVersion rootProject.ext.minSdkVersion
134135
targetSdkVersion rootProject.ext.targetSdkVersion
@@ -178,6 +179,13 @@ android {
178179

179180
}
180181
}
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+
}
181189
}
182190

183191
dependencies {

index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
/**
2-
* @format
3-
*/
4-
1+
import 'react-native-gesture-handler';
52
import {AppRegistry} from 'react-native';
6-
import App from './App';
3+
4+
import {Root} from './App';
75
import {name as appName} from './app.json';
86

9-
AppRegistry.registerComponent(appName, () => App);
7+
AppRegistry.registerComponent(appName, () => Root);

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,23 @@
1010
"lint": "eslint ."
1111
},
1212
"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",
1319
"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"
1530
},
1631
"devDependencies": {
1732
"@babel/core": "^7.8.4",

0 commit comments

Comments
 (0)