Sfoglia il codice sorgente

Rename MyActivity to MainActivity

This will make react-native run-android work
Guy Carmeli 8 anni fa
parent
commit
72d519b09c

+ 1
- 1
example/android/app/src/main/AndroidManifest.xml Vedi File

@@ -10,7 +10,7 @@
10 10
         android:label="@string/app_name"
11 11
         android:theme="@style/AppTheme">
12 12
         <activity
13
-            android:name=".MyActivity"
13
+            android:name=".MainActivity"
14 14
             android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
15 15
             android:label="@string/app_name">
16 16
             <intent-filter>

example/android/app/src/main/java/com/example/MyActivity.java → example/android/app/src/main/java/com/example/MainActivity.java Vedi File

@@ -2,6 +2,6 @@ package com.example;
2 2
 
3 3
 import com.reactnativenavigation.controllers.SplashActivity;
4 4
 
5
-public class MyActivity extends SplashActivity {
5
+public class MainActivity extends SplashActivity {
6 6
 
7 7
 }