Guest User

Untitled

a guest
Sep 16th, 2016
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package com.testmapbox;
  2.  
  3. import com.facebook.react.ReactActivity;
  4. import com.mapbox.reactnativemapboxgl.ReactNativeMapboxGLPackage;
  5. import com.facebook.react.shell.MainReactPackage;
  6. import com.facebook.react.ReactPackage;
  7.  
  8. import java.util.List;
  9. import java.util.Arrays;
  10.  
  11. public class MainActivity extends ReactActivity {
  12.  
  13. /**
  14. * Returns the name of the main component registered from JavaScript.
  15. * This is used to schedule rendering of the component.
  16. */
  17. @Override
  18. protected String getMainComponentName() {
  19. return "testMapBox";
  20. }
  21. @Override
  22. protected List<ReactPackage> getPackages() {
  23. return Arrays.<ReactPackage>asList(
  24. new MainReactPackage(),
  25. new ReactNativeMapboxGLPackage()); // <-- Register package here
  26. }
  27. }
Add Comment
Please, Sign In to add comment