mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
- [ReactNative] Remove pushNotification prop from renderApplication | Eric Vicenti - [react_native] Stub VibrationIOS on Android | Andy Street - [ReactNative] Simplify and test interpolators | Christopher Chedeau - [ReactNative] Increase timeout for obj-c tests | Christopher Chedeau - [ReactNative] Updated RKText to new UIManager system | Nick Lockwood - [ReactNative] Unforked RCTShadowView, moved RKTextView into FBReactKitTextModule | Nick Lockwood - [ReactKit] Remove NativeModulesDeprecated | Spencer Ahrens - [ReactNative] Allow single callbacks in NativeModules | Spencer Ahrens - [ReactNative] s/RK/RCT in OSS | Spencer Ahrens - [ReactNative] Cleanup StyleSheet API | Christopher Chedeau - [RCTVibration] Basic Vibration API | Christopher Chedeau - [React Native] Prevent crash in redbox code with two thrown errors | Ben Alpert - [ReactNative] unbreak Android | Andrew Rasmussen
22 lines
514 B
JavaScript
22 lines
514 B
JavaScript
/**
|
|
* @providesModule ReactIOSGlobalResponderHandler
|
|
*/
|
|
'use strict';
|
|
|
|
var RCTUIManager = require('NativeModules').RCTUIManager;
|
|
var ReactIOSTagHandles = require('ReactIOSTagHandles');
|
|
|
|
var ReactIOSGlobalResponderHandler = {
|
|
onChange: function(from, to) {
|
|
if (to !== null) {
|
|
RCTUIManager.setJSResponder(
|
|
ReactIOSTagHandles.mostRecentMountedNodeHandleForRootNodeID(to)
|
|
);
|
|
} else {
|
|
RCTUIManager.clearJSResponder();
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = ReactIOSGlobalResponderHandler;
|