mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Updates from Tue 17 Mar
- [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
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
var NativeModules = require('NativeModules');
|
||||
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||
var RKReachability = NativeModules.RKReachability;
|
||||
var RCTReachability = NativeModules.RCTReachability;
|
||||
|
||||
var DEVICE_REACHABILITY_EVENT = 'reachabilityDidChange';
|
||||
|
||||
@@ -49,7 +49,7 @@ type ChangeEventName = $Enum<{
|
||||
|
||||
var NetInfo = {};
|
||||
|
||||
if (RKReachability) {
|
||||
if (RCTReachability) {
|
||||
var _reachabilitySubscriptions = {};
|
||||
|
||||
NetInfo.reachabilityIOS = {
|
||||
@@ -78,7 +78,7 @@ if (RKReachability) {
|
||||
|
||||
fetch: function(): Promise {
|
||||
return new Promise((resolve, reject) => {
|
||||
RKReachability.getCurrentReachability(
|
||||
RCTReachability.getCurrentReachability(
|
||||
(resp) => {
|
||||
resolve(resp.network_reachability);
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var RKDataManager = require('NativeModulesDeprecated').RKDataManager;
|
||||
var RCTDataManager = require('NativeModules').RCTDataManager;
|
||||
|
||||
var crc32 = require('crc32');
|
||||
|
||||
@@ -91,7 +91,7 @@ class XMLHttpRequest {
|
||||
}
|
||||
this._sent = true;
|
||||
|
||||
RKDataManager.queryData(
|
||||
RCTDataManager.queryData(
|
||||
'http',
|
||||
JSON.stringify({
|
||||
method: this._method,
|
||||
|
||||
Reference in New Issue
Block a user