turbo-native-goproxy
Version:
A Turbo Native module for secure native local storage
13 lines (10 loc) • 478 B
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
multiply(a: number, b: number): number;
setSecureItem(key: string, value: string): Promise<void>;
getSecureItem(key: string): Promise<string | null>;
removeSecureItem(key: string): Promise<void>;
hasSecureItem(key: string): Promise<boolean>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('TurboNativeGoproxy');