mirror of
https://github.com/standardnotes/mobile.git
synced 2026-05-19 12:04:31 -04:00
first commit
This commit is contained in:
15
android/app/src/main/java/com/sn_react/MainActivity.java
Normal file
15
android/app/src/main/java/com/sn_react/MainActivity.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.sn_react;
|
||||
|
||||
//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.
|
||||
*/
|
||||
protected String getMainComponentName() {
|
||||
return "sn_react";
|
||||
}
|
||||
}
|
||||
48
android/app/src/main/java/com/sn_react/MainApplication.java
Normal file
48
android/app/src/main/java/com/sn_react/MainApplication.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package com.sn_react;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
//import com.facebook.react.ReactApplication;
|
||||
import com.oblador.vectoricons.VectorIconsPackage;
|
||||
import com.tectiv3.aes.RCTAesPackage;
|
||||
import com.facebook.react.ReactNativeHost;
|
||||
import com.facebook.react.ReactPackage;
|
||||
import com.facebook.react.shell.MainReactPackage;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
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() {
|
||||
return Arrays.asList(
|
||||
new MainReactPackage(),
|
||||
new VectorIconsPackage(),
|
||||
new RCTAesPackage()
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public List<ReactPackage> createAdditionalReactPackages() {
|
||||
return getPackages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
SoLoader.init(this, /* native exopackage */ false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user