-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
android/app/src/main/java/com/reduxforreactnativedemo/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
package com.reduxforreactnativedemo; | ||
|
||
import com.facebook.react.ReactActivity; | ||
import com.reactnativenavigation.controllers.SplashActivity; | ||
|
||
public class MainActivity extends SplashActivity { | ||
|
||
/** | ||
* Returns the name of the main component registered from JavaScript. | ||
* This is used to schedule rendering of the component. | ||
*/ | ||
@Override | ||
protected String getMainComponentName() { | ||
return "ReduxForReactNativeDemo"; | ||
} | ||
} |
54 changes: 20 additions & 34 deletions
54
android/app/src/main/java/com/reduxforreactnativedemo/MainApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,29 @@ | ||
package com.reduxforreactnativedemo; | ||
|
||
import android.app.Application; | ||
|
||
import com.facebook.react.ReactApplication; | ||
import com.reactnativenavigation.NavigationReactPackage; | ||
import com.facebook.react.ReactNativeHost; | ||
import com.facebook.react.ReactPackage; | ||
import com.facebook.react.shell.MainReactPackage; | ||
import com.facebook.soloader.SoLoader; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import com.reactnativenavigation.NavigationApplication; | ||
|
||
public class MainApplication extends NavigationApplication { | ||
|
||
@Override | ||
public boolean isDebug() { | ||
// Make sure you are using BuildConfig from your own application | ||
return BuildConfig.DEBUG; | ||
} | ||
|
||
protected List<ReactPackage> getPackages() { | ||
// Add additional packages you require here | ||
// No need to add RnnPackage and MainReactPackage | ||
return Arrays.<ReactPackage>asList( | ||
new MainReactPackage(), | ||
new NavigationReactPackage() | ||
); | ||
} | ||
|
||
@Override | ||
public List<ReactPackage> createAdditionalReactPackages() { | ||
return getPackages(); | ||
} | ||
|
||
@Override | ||
public String getJSMainModuleName() { | ||
return "index"; | ||
} | ||
} | ||
public class MainApplication extends NavigationApplication { | ||
@Override | ||
public boolean isDebug() { | ||
return BuildConfig.DEBUG; | ||
} | ||
|
||
|
||
@Override | ||
public List<ReactPackage> createAdditionalReactPackages() { | ||
return Arrays.<ReactPackage>asList( | ||
// | ||
); | ||
} | ||
|
||
@Override | ||
public String getJSMainModuleName() { | ||
return "index"; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters