-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
index.ts
64 lines (60 loc) · 1.87 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import MMKVInstance from './src/mmkvinstance';
import { useIndex } from './src/hooks/useIndex';
import { create, useMMKVStorage } from './src/hooks/useMMKV';
import { createMMKVRefHookForStorage, useMMKVRef } from './src/hooks/useMMKVRef';
import { getCurrentMMKVInstanceIDs } from './src/initializer';
import MMKVLoader from './src/mmkvloader';
import IDStore from './src/mmkv/IDStore';
import { init, isLoaded } from './src/mmkv/init';
import mmkvJsiModule, { mmkvBridgeModule } from './src/module';
import { IOSAccessibleStates, ProcessingModes } from './src/utils';
const MMKVStorage = {
/**
* @deprecated Use `import {MMKVLoader} from "react-native-mmkv-storage`"
*/
Loader: MMKVLoader,
/**
* @deprecated Use `import {MMKVInstance} from "react-native-mmkv-storage`"
*/
API: MMKVInstance,
/**
* @deprecated Use `import {ProcessingModes} from "react-native-mmkv-storage`"
*/
MODES: ProcessingModes,
/**
* @deprecated Use `import {IOSAccessibleStates} from "react-native-mmkv-storage`"
*/
ACCESSIBLE: IOSAccessibleStates,
/**
* @deprecated Use `import {getAllMMKVInstanceIDs} from "react-native-mmkv-storage`"
*/
getAllMMKVInstanceIDs: IDStore.getAllMMKVInstanceIDs,
/**
* @deprecated Use `import {getCurrentMMKVInstanceIDs} from "react-native-mmkv-storage`"
*/
getCurrentMMKVInstanceIDs: getCurrentMMKVInstanceIDs,
/**
* @deprecated Use `import {IDSTORE_ID} from "react-native-mmkv-storage`"
*/
IDSTORE_ID: IDStore.STORE_ID,
_jsiModule: mmkvJsiModule,
_bridgeModule: mmkvBridgeModule
};
export default MMKVStorage;
const { getAllMMKVInstanceIDs, STORE_ID: IDSTORE_ID } = IDStore;
export {
useMMKVStorage,
create,
useIndex,
isLoaded,
init,
MMKVInstance,
MMKVLoader,
ProcessingModes,
IOSAccessibleStates,
getCurrentMMKVInstanceIDs,
getAllMMKVInstanceIDs,
IDSTORE_ID,
createMMKVRefHookForStorage,
useMMKVRef
};