react-native-turbo-preferences
Version:
Modern TurboModule wrapper for iOS NSUserDefaults and Android SharedPreferences.
21 lines • 888 B
TypeScript
import TurboPreferences from './NativeTurboPreferences';
export declare function setName(name: string | null): Promise<void>;
export declare function get(key: string): Promise<string | null>;
export declare function getAll(): Promise<{
[key: string]: string;
} | null>;
export declare function set(key: string, value: string): Promise<void>;
export declare function clear(key: string): Promise<void>;
export declare function clearAll(): Promise<void>;
export declare function setMultiple(values: {
key: string;
value: string;
}[]): Promise<void>;
export declare function getMultiple(keys: string[]): Promise<{
[key: string]: string | null;
}>;
export declare function clearMultiple(keys: string[]): Promise<void>;
export declare function contains(key: string): Promise<boolean>;
export * from './hooks';
export default TurboPreferences;
//# sourceMappingURL=index.d.ts.map