Last active
April 15, 2016 22:54
-
-
Save ryanlntn/990f7b6019a4a7044838e5aadaed8a3f to your computer and use it in GitHub Desktop.
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
package com.myapp; | |
import com.facebook.react.ReactActivity; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.shell.MainReactPackage; | |
import java.util.Arrays; | |
import java.util.List; | |
public class MainActivity extends ReactActivity { | |
@Override | |
protected String getMainComponentName() { | |
return "MyApp"; | |
} | |
@Override | |
protected boolean getUseDeveloperSupport() { | |
return BuildConfig.DEBUG; | |
} | |
@Override | |
protected List<ReactPackage> getPackages() { | |
return Arrays.<ReactPackage>asList( | |
new MainReactPackage() | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment