我正在运行React Native Movies示例:
https://github.com/facebook/react-native/tree/master/Examples/Movies
通过运行:
./gradlew :Examples:Movies:android:app:installDebug
对于标准的MoviesActivity:
public class MoviesActivity extends ReactActivity {
@Override
protected String getMainComponentName() {
return "MoviesApp";
}
@Override // line 31
protected @Nullable String getBundleAssetName() {
return "MoviesApp.android.bundle";
};
@Override // line 36
protected String getJSMainModuleName() {
return "Examples/Movies/MoviesApp.android";
}
@Override
protected boolean getUseDeveloperSupport() {
return true;
}
@Override // line 46
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
);
}
}