@Override public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { return Arrays.<NativeModule>asList( new AppStateModule(reactContext), new AsyncStorageModule(reactContext), new CameraRollManager(reactContext), new ClipboardModule(reactContext), new DatePickerDialogModule(reactContext), new DialogModule(reactContext), new FrescoModule(reactContext), new ImageEditingManager(reactContext), new ImageStoreManager(reactContext), new IntentModule(reactContext), new LocationModule(reactContext), new NetworkingModule(reactContext), new NetInfoModule(reactContext), new StatusBarModule(reactContext), new TimePickerDialogModule(reactContext), new ToastModule(reactContext), new VibrationModule(reactContext), new WebSocketModule(reactContext) ); }
@Override public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { return Arrays.<NativeModule>asList( new AppStateModule(reactContext), new AsyncStorageModule(reactContext), new CameraRollManager(reactContext), new ClipboardModule(reactContext), new DatePickerDialogModule(reactContext), new DialogModule(reactContext), new FrescoModule(reactContext), new ImageEditingManager(reactContext), new ImageLoaderModule(reactContext), new ImageStoreManager(reactContext), new IntentModule(reactContext), new LocationModule(reactContext), new NetworkingModule(reactContext), new NetInfoModule(reactContext), new StatusBarModule(reactContext), new TimePickerDialogModule(reactContext), new ToastModule(reactContext), new VibrationModule(reactContext), new WebSocketModule(reactContext) ); }
@Before public void setUp() { mClipboardModule = new ClipboardModule(RuntimeEnvironment.application); mClipboardManager = (ClipboardManager) RuntimeEnvironment.application.getSystemService(Context.CLIPBOARD_SERVICE); }
@Before public void setUp() { mClipboardModule = new ClipboardModule(ReactTestHelper.createCatalystContextForTest()); mClipboardManager = (ClipboardManager) RuntimeEnvironment.application.getSystemService(Context.CLIPBOARD_SERVICE); }