Skip to content

Commit 7da902f

Browse files
committed
[TurboModule] Add a NativeModule Spec file
1 parent cb0eceb commit 7da902f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

js/NativeAnswerSolver.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @format
3+
* @flow strict-local
4+
*/
5+
6+
'use strict';
7+
8+
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
9+
import {TurboModuleRegistry} from 'react-native';
10+
11+
export interface Spec extends TurboModule {
12+
answerTheUltimateQuestion(input: string): number;
13+
}
14+
15+
export default (TurboModuleRegistry.get<Spec>('NativeAnswerSolver'): ?Spec);

0 commit comments

Comments
 (0)