Back out "Roll out RCTNetworking extraneous NativeModule call removal"
Summary: It broke Forecast. Original commit changeset: 0da20475a088 Changelog: [Internal] Differential Revision: D25641098 fbshipit-source-id: 94daf0479963745bbca50b409b5a1dec1c8e8e71
This commit is contained in:
Родитель
c4cc636d9a
Коммит
932c04cc99
|
@ -18,8 +18,13 @@ import type {RequestBody} from './convertRequestBody';
|
|||
|
||||
class RCTNetworking extends NativeEventEmitter {
|
||||
constructor() {
|
||||
const disableCallsIntoModule =
|
||||
typeof global.__disableRCTNetworkingExtraneousModuleCalls === 'function'
|
||||
? global.__disableRCTNetworkingExtraneousModuleCalls()
|
||||
: false;
|
||||
|
||||
super(NativeNetworkingIOS, {
|
||||
__SECRET_DISABLE_CALLS_INTO_MODULE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: true,
|
||||
__SECRET_DISABLE_CALLS_INTO_MODULE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: disableCallsIntoModule,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче