Skip to content

Commit

Permalink
[TurboModule] Add a NativeModule Spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Feb 28, 2022
1 parent cb0eceb commit 7da902f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions js/NativeAnswerSolver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @format
* @flow strict-local
*/

'use strict';

import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import {TurboModuleRegistry} from 'react-native';

export interface Spec extends TurboModule {
answerTheUltimateQuestion(input: string): number;
}

export default (TurboModuleRegistry.get<Spec>('NativeAnswerSolver'): ?Spec);

0 comments on commit 7da902f

Please sign in to comment.