Fix android activity template. Fixes #5030
Summary: Closes https://github.com/facebook/react-native/pull/5033 Reviewed By: svcscm Differential Revision: D2794157 Pulled By: androidtrunkagent fb-gh-sync-id: 9d30b3a661b18be31d246dc3f55c429cc4b51a8a
This commit is contained in:
parent
71723ec3ec
commit
f93cf6ca19
|
@ -1,8 +1,12 @@
|
|||
package <%= package %>;
|
||||
|
||||
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 {
|
||||
|
||||
/**
|
||||
|
@ -28,7 +32,7 @@ public class MainActivity extends ReactActivity {
|
|||
* or modules besides the default ones, add more packages here.
|
||||
*/
|
||||
@Override
|
||||
protected abstract List<ReactPackage> getPackages() {
|
||||
protected List<ReactPackage> getPackages() {
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue