Java 类com.facebook.react.modules.dialog.DialogModule 实例源码

项目:ReactNativeSignatureExample    文件:MainReactPackage.java   
@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)
  );
}
项目:react-native-ibeacon-android    文件:MainReactPackage.java   
@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)
  );
}
项目:react-native-box-loaders    文件:MainReactPackage.java   
@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)
  );
}
项目:react-native-prompt-android    文件:RNPromptModule.java   
@Override
public void onHostResume() {
    mIsInForeground = true;
    // Check if a dialog has been created while the host was paused, so that we can show it now.
    FragmentManagerHelper fragmentManagerHelper = getFragmentManagerHelper();
    if (fragmentManagerHelper != null) {
        fragmentManagerHelper.showPendingAlert();
    } else {
        FLog.w(DialogModule.class, "onHostResume called but no FragmentManager found");
    }
}