Skip to content

Instantly share code, notes, and snippets.

@rajsuvariya
Created August 6, 2017 07:16
Show Gist options
  • Save rajsuvariya/1eb5e07b72ceb9c5be84cab60e87c3f3 to your computer and use it in GitHub Desktop.
Save rajsuvariya/1eb5e07b72ceb9c5be84cab60e87c3f3 to your computer and use it in GitHub Desktop.
public class SharedPreferencePackager implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new SharedPreferenceModule(reactContext));
return modules;
}
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment