mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
[ReactNative] Remove RCTJSTimers
Summary: @public Remove `RCTJSTimers.js`, the file was just an alias to `JSTimersExecution`. Test Plan: Still builds.
This commit is contained in:
parent
650fc9de4c
commit
c30365acba
@ -1,18 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*
|
|
||||||
* @providesModule RCTJSTimers
|
|
||||||
* @flow
|
|
||||||
*/
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var JSTimersExecution = require('JSTimersExecution');
|
|
||||||
|
|
||||||
var RCTJSTimers = JSTimersExecution;
|
|
||||||
|
|
||||||
module.exports = RCTJSTimers;
|
|
@ -40,7 +40,7 @@ var invariant = require('invariant');
|
|||||||
// Just to ensure this gets packaged, since its only caller is from Native.
|
// Just to ensure this gets packaged, since its only caller is from Native.
|
||||||
require('RCTEventEmitter');
|
require('RCTEventEmitter');
|
||||||
require('RCTLog');
|
require('RCTLog');
|
||||||
require('RCTJSTimers');
|
require('JSTimersExecution');
|
||||||
|
|
||||||
function inject() {
|
function inject() {
|
||||||
/**
|
/**
|
||||||
|
@ -1245,7 +1245,7 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(__unused NSString *)module
|
|||||||
{
|
{
|
||||||
RCTAssertJSThread();
|
RCTAssertJSThread();
|
||||||
|
|
||||||
NSString *moduleDotMethod = @"RCTJSTimers.callTimers";
|
NSString *moduleDotMethod = @"JSTimersExecution.callTimers";
|
||||||
NSNumber *moduleID = RCTLocalModuleIDs[moduleDotMethod];
|
NSNumber *moduleID = RCTLocalModuleIDs[moduleDotMethod];
|
||||||
RCTAssert(moduleID != nil, @"Module '%@' not registered.",
|
RCTAssert(moduleID != nil, @"Module '%@' not registered.",
|
||||||
[[moduleDotMethod componentsSeparatedByString:@"."] firstObject]);
|
[[moduleDotMethod componentsSeparatedByString:@"."] firstObject]);
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
RCT_EXPORT_MODULE()
|
RCT_EXPORT_MODULE()
|
||||||
|
|
||||||
RCT_IMPORT_METHOD(RCTJSTimers, callTimers)
|
RCT_IMPORT_METHOD(JSTimersExecution, callTimers)
|
||||||
|
|
||||||
- (instancetype)init
|
- (instancetype)init
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ RCT_IMPORT_METHOD(RCTJSTimers, callTimers)
|
|||||||
|
|
||||||
// call timers that need to be called
|
// call timers that need to be called
|
||||||
if ([timersToCall count] > 0) {
|
if ([timersToCall count] > 0) {
|
||||||
[_bridge enqueueJSCall:@"RCTJSTimers.callTimers" args:@[timersToCall]];
|
[_bridge enqueueJSCall:@"JSTimersExecution.callTimers" args:@[timersToCall]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_timers.count == 0) {
|
if (_timers.count == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user