-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Part of #24875 ## Changelog [General] [Added] - Add TurboModule spec for Timing Pull Request resolved: #24889 Reviewed By: fkgozali Differential Revision: D15379559 Pulled By: RSNara fbshipit-source-id: d254fb4d1cae3533bbd63bf7ec739cebc6ca14b0
- Loading branch information
1 parent
94029ee
commit db0ec66
Showing
2 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import type {TurboModule} from 'RCTExport'; | ||
import * as TurboModuleRegistry from 'TurboModuleRegistry'; | ||
|
||
export interface Spec extends TurboModule { | ||
+createTimer: ( | ||
callbackID: number, | ||
duration: number, | ||
jsSchedulingTime: number, | ||
repeats: boolean, | ||
) => void; | ||
+deleteTimer: (timerID: number) => void; | ||
+setSendIdleEvents: (sendIdleEvents: boolean) => void; | ||
} | ||
|
||
export default TurboModuleRegistry.get<Spec>('Timing'); |