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:
Javier Fraire 2020-12-18 11:07:52 -08:00 коммит произвёл Facebook GitHub Bot
Родитель c4cc636d9a
Коммит 932c04cc99
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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,
});
}