Cleaned up the Java code a bit
This commit is contained in:
parent
e118b15b8c
commit
89cde021d8
|
@ -1,7 +0,0 @@
|
||||||
package com.aakashns.reactnativedialogs;
|
|
||||||
|
|
||||||
public class Test {
|
|
||||||
public static int add(int x, int y) {
|
|
||||||
return x + y;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.exampleapp;
|
package com.exampleapp;
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.FragmentActivity;
|
import android.support.v4.app.FragmentActivity;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
|
@ -12,7 +11,6 @@ import com.facebook.react.ReactRootView;
|
||||||
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
||||||
import com.facebook.react.shell.MainReactPackage;
|
import com.facebook.react.shell.MainReactPackage;
|
||||||
import com.facebook.soloader.SoLoader;
|
import com.facebook.soloader.SoLoader;
|
||||||
import com.aakashns.reactnativedialogs.Test;
|
|
||||||
import com.github.xinthink.rnmk.ReactMaterialKitPackage;
|
import com.github.xinthink.rnmk.ReactMaterialKitPackage;
|
||||||
|
|
||||||
public class MainActivity extends FragmentActivity implements DefaultHardwareBackBtnHandler {
|
public class MainActivity extends FragmentActivity implements DefaultHardwareBackBtnHandler {
|
||||||
|
@ -22,7 +20,6 @@ public class MainActivity extends FragmentActivity implements DefaultHardwareBac
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
System.out.println(Test.add(2, 3));
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
mReactRootView = new ReactRootView(this);
|
mReactRootView = new ReactRootView(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue