Java 类com.facebook.react.bridge.ActivityEventListener 实例源码

项目:react-native-quick-actions    文件:AppShortcutsModule.java   
AppShortcutsModule(ReactApplicationContext reactContext) {
    super(reactContext);

    reactContext.addActivityEventListener(new ActivityEventListener() {
        @Override
        public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
            // Do nothing
        }

        @Override
        public void onNewIntent(Intent intent) {
            sendJSEvent(intent);
        }
    });
}