react-native-navigation的迁移库

ReactGateway.java 914B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.reactnativenavigation.react;
  2. import android.app.Activity;
  3. import android.content.Intent;
  4. import com.facebook.react.ReactInstanceManager;
  5. import com.facebook.react.bridge.ReactContext;
  6. import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
  7. import com.reactnativenavigation.bridge.NavigationReactEventEmitter;
  8. public interface ReactGateway {
  9. void startReactContextOnceInBackgroundAndExecuteJS();
  10. boolean isInitialized();
  11. ReactContext getReactContext();
  12. NavigationReactEventEmitter getReactEventEmitter();
  13. ReactInstanceManager getReactInstanceManager();
  14. void onResumeActivity(Activity activity, DefaultHardwareBackBtnHandler defaultHardwareBackBtnHandler);
  15. void onPauseActivity();
  16. void onDestroyApp();
  17. void onBackPressed();
  18. void onActivityResult(int requestCode, int resultCode, Intent data);
  19. boolean hasStartedCreatingContext();
  20. }