mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-12 23:02:49 +00:00
init create-react-native-library
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { TurboModuleRegistry, type TurboModule } from 'react-native';
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
multiply(a: number, b: number): number;
|
||||
}
|
||||
|
||||
export default TurboModuleRegistry.getEnforcing<Spec>('UniffiRussh');
|
||||
@@ -0,0 +1 @@
|
||||
it.todo('write a test');
|
||||
5
packages/react-native-uniffi-russh/src/index.tsx
Normal file
5
packages/react-native-uniffi-russh/src/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import UniffiRussh from './NativeUniffiRussh';
|
||||
|
||||
export function multiply(a: number, b: number): number {
|
||||
return UniffiRussh.multiply(a, b);
|
||||
}
|
||||
Reference in New Issue
Block a user