Skip to content

Commit 0a41318

Browse files
support android
1 parent f8835ec commit 0a41318

File tree

16 files changed

+86
-46
lines changed

16 files changed

+86
-46
lines changed

android/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ android {
8080
targetSdkVersion rootProject.ext.targetSdkVersion
8181
versionCode 1
8282
versionName "1.0"
83+
84+
missingDimensionStrategy 'react-native-camera', 'general'
8385
}
8486
signingConfigs {
8587
debug {
@@ -120,4 +122,10 @@ dependencies {
120122
}
121123
}
122124

125+
project.ext.vectoricons = [
126+
iconFontNames: [ 'MaterialCommunityIcons.ttf', 'Ionicons.ttf' ]
127+
]
128+
129+
apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle");
130+
123131
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

android/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
android:name=".MainApplication"
77
android:label="@string/app_name"
88
android:icon="@mipmap/ic_launcher"
9-
android:roundIcon="@mipmap/ic_launcher_round"
109
android:allowBackup="false"
1110
android:theme="@style/AppTheme">
1211
<activity
13-
android:name=".MainActivity"
14-
android:label="@string/app_name"
15-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
16-
android:launchMode="singleTask"
17-
android:windowSoftInputMode="adjustResize"
18-
android:exported="true">
12+
android:name=".MainActivity"
13+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
14+
android:exported="true"
15+
android:label="@string/app_name"
16+
android:launchMode="singleTask"
17+
android:screenOrientation="portrait"
18+
android:windowSoftInputMode="adjustResize">
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN" />
2121
<category android:name="android.intent.category.LAUNCHER" />
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.

0 commit comments

Comments
 (0)