Selaa lähdekoodia

App in example

Daniel Zlotin 8 vuotta sitten
vanhempi
commit
fcabc11d32

+ 14
- 13
example-redux/android/app/src/main/AndroidManifest.xml Näytä tiedosto

@@ -4,20 +4,21 @@
4 4
     <uses-permission android:name="android.permission.INTERNET" />
5 5
 
6 6
     <application
7
-      android:allowBackup="true"
8
-      android:label="@string/app_name"
9
-      android:icon="@mipmap/ic_launcher"
10
-      android:theme="@style/AppTheme">
11
-      <activity
12
-        android:name=".MainActivity"
7
+        android:name=".App"
8
+        android:allowBackup="true"
9
+        android:icon="@mipmap/ic_launcher"
13 10
         android:label="@string/app_name"
14
-        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
15
-        <intent-filter>
16
-            <action android:name="android.intent.action.MAIN" />
17
-            <category android:name="android.intent.category.LAUNCHER" />
18
-        </intent-filter>
19
-      </activity>
20
-      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
11
+        android:theme="@style/AppTheme">
12
+        <activity
13
+            android:name=".MainActivity"
14
+            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
15
+            android:label="@string/app_name">
16
+            <intent-filter>
17
+                <action android:name="android.intent.action.MAIN" />
18
+                <category android:name="android.intent.category.LAUNCHER" />
19
+            </intent-filter>
20
+        </activity>
21
+        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
21 22
     </application>
22 23
 
23 24
 </manifest>

+ 10
- 0
example-redux/android/app/src/main/java/com/exampleredux/App.java Näytä tiedosto

@@ -0,0 +1,10 @@
1
+package com.exampleredux;
2
+
3
+import com.reactnativenavigation.NavigationApplication;
4
+
5
+public class App extends NavigationApplication {
6
+    @Override
7
+    public boolean isDebug() {
8
+        return BuildConfig.DEBUG;
9
+    }
10
+}