Skip to content

Instantly share code, notes, and snippets.

@agrcrobles
Last active April 11, 2018 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agrcrobles/f8702b8ea2a10b6fd79bb0a5a967c7d7 to your computer and use it in GitHub Desktop.
Save agrcrobles/f8702b8ea2a10b6fd79bb0a5a967c7d7 to your computer and use it in GitHub Desktop.
package com.hellohybrid;
/**
* Created by zetta on 2/1/17.
*/
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.ReactPackage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.uimanager.ViewManager;
class HybridNavigationPackager implements ReactPackage {
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
@Override
public List<NativeModule> createNativeModules(
ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new HybridNavigationManager(reactContext));
return modules;
}
}
@agrcrobles
Copy link
Author

agrcrobles commented Feb 12, 2017

     @Override
      protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
            new HybridNavigationPackager(),
            new MainReactPackage()
        );
      }

agrcrobles/react-navigation@73ae476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment