Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.testmapbox;
- import com.facebook.react.ReactActivity;
- import com.mapbox.reactnativemapboxgl.ReactNativeMapboxGLPackage;
- import com.facebook.react.shell.MainReactPackage;
- import com.facebook.react.ReactPackage;
- import java.util.List;
- import java.util.Arrays;
- public class MainActivity extends ReactActivity {
- /**
- * Returns the name of the main component registered from JavaScript.
- * This is used to schedule rendering of the component.
- */
- @Override
- protected String getMainComponentName() {
- return "testMapBox";
- }
- @Override
- protected List<ReactPackage> getPackages() {
- return Arrays.<ReactPackage>asList(
- new MainReactPackage(),
- new ReactNativeMapboxGLPackage()); // <-- Register package here
- }
- }
Add Comment
Please, Sign In to add comment