react-native-navigation的迁移库

NavigationReactPackage.java 935B

1234567891011121314151617181920212223242526272829303132
  1. package com.reactnativenavigation.bridge;
  2. import com.facebook.react.ReactPackage;
  3. import com.facebook.react.bridge.JavaScriptModule;
  4. import com.facebook.react.bridge.NativeModule;
  5. import com.facebook.react.bridge.ReactApplicationContext;
  6. import com.facebook.react.uimanager.ViewManager;
  7. import java.util.Arrays;
  8. import java.util.Collections;
  9. import java.util.List;
  10. public class NavigationReactPackage implements ReactPackage {
  11. @Override
  12. public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
  13. return Arrays.<NativeModule>asList(
  14. new NavigationReactModule(reactContext)
  15. );
  16. }
  17. @Override
  18. public List<Class<? extends JavaScriptModule>> createJSModules() {
  19. return Collections.emptyList();
  20. }
  21. @Override
  22. public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
  23. return Collections.emptyList();
  24. }
  25. }