mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
React sync for revisions 7a3416f...725c054
Reviewed By: bvaughn Differential Revision: D7565731 fbshipit-source-id: 91d76a11b7c91dab2fb3295418d1372ca9c1b572
This commit is contained in:
committed by
Facebook Github Bot
parent
ba45895a3f
commit
906dde06b3
@@ -14,19 +14,15 @@
|
||||
const {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
} = require('ReactFabric');
|
||||
const createReactNativeComponentClass = require('createReactNativeComponentClass');
|
||||
|
||||
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
|
||||
|
||||
const {
|
||||
NativeMethodsMixin,
|
||||
ReactNativeBridgeEventPlugin,
|
||||
createReactNativeComponentClass,
|
||||
} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
const {NativeMethodsMixin} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
|
||||
module.exports = {
|
||||
NativeMethodsMixin: ((NativeMethodsMixin: any): $Exact<
|
||||
NativeMethodsMixinType,
|
||||
>),
|
||||
ReactNativeBridgeEventPlugin,
|
||||
createReactNativeComponentClass,
|
||||
};
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
'use strict';
|
||||
|
||||
const Platform = require('Platform');
|
||||
const {
|
||||
ReactNativeBridgeEventPlugin,
|
||||
createReactNativeComponentClass,
|
||||
} = require('ReactFabricInternals');
|
||||
const {createReactNativeComponentClass} = require('ReactFabricInternals');
|
||||
const ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
|
||||
const UIManager = require('UIManager');
|
||||
|
||||
@@ -200,11 +197,6 @@ function requireNativeComponent(
|
||||
hasAttachedDefaultEventTypes = true;
|
||||
}
|
||||
|
||||
// Register this view's event types with the ReactNative renderer.
|
||||
// This enables view managers to be initialized lazily, improving perf,
|
||||
// While also enabling 3rd party components to define custom event types.
|
||||
ReactNativeBridgeEventPlugin.processEventTypes(viewConfig);
|
||||
|
||||
return viewConfig;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
'use strict';
|
||||
|
||||
const Platform = require('Platform');
|
||||
const ReactNativeBridgeEventPlugin = require('ReactNativeBridgeEventPlugin');
|
||||
const ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
|
||||
const UIManager = require('UIManager');
|
||||
|
||||
@@ -198,11 +197,6 @@ function requireNativeComponent(
|
||||
hasAttachedDefaultEventTypes = true;
|
||||
}
|
||||
|
||||
// Register this view's event types with the ReactNative renderer.
|
||||
// This enables view managers to be initialized lazily, improving perf,
|
||||
// While also enabling 3rd party components to define custom event types.
|
||||
ReactNativeBridgeEventPlugin.processEventTypes(viewConfig);
|
||||
|
||||
return viewConfig;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user