Skip to content

Commit 103875e

Browse files
authored
Merge pull request #6 from josepernia91/master
Fixing Multiple Issues for Android
2 parents bde6d79 + eb0366d commit 103875e

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def enableProguardInReleaseBuilds = false
9595

9696
android {
9797
compileSdkVersion 25
98-
buildToolsVersion "25.0.1"
98+
buildToolsVersion "26.0.2"
9999

100100
defaultConfig {
101101
applicationId "com.reduxtemplate"

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
android:allowBackup="false"
1313
android:theme="@style/AppTheme">
1414
<activity
15-
android:name=".MainApplication"
15+
android:name=".MainActivity"
1616
android:label="@string/app_name"
1717
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
1818
android:windowSoftInputMode="adjustResize">
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
package com.reduxtemplate;
2+
13
import com.reactnativenavigation.controllers.SplashActivity;
24

35
public class MainActivity extends SplashActivity {
46

7+
/**
8+
* Returns the name of the main component registered from JavaScript.
9+
* This is used to schedule rendering of the component.
10+
*/
11+
12+
protected String getMainComponentName() {
13+
return "reduxTemplate";
14+
}
515
}

android/app/src/main/java/com/reduxtemplate/MainApplication.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
package com.reduxtemplate;
2+
3+
import com.facebook.react.ReactPackage;
14
import com.reactnativenavigation.NavigationApplication;
25

6+
import java.util.Arrays;
7+
import java.util.List;
8+
39
public class MainApplication extends NavigationApplication {
410

511
@Override

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
89
classpath 'com.android.tools.build:gradle:3.0.1'

0 commit comments

Comments
 (0)