Browse Source

use react native community async storage

Arnaud Vergnet 4 years ago
parent
commit
097ea5379a
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      package.json
  2. 1
    1
      src/managers/AsyncStorageManager.js

+ 1
- 0
package.json View File

20
   },
20
   },
21
   "dependencies": {
21
   "dependencies": {
22
     "@nartc/react-native-barcode-mask": "^1.1.9",
22
     "@nartc/react-native-barcode-mask": "^1.1.9",
23
+    "@react-native-community/async-storage": "^1.9.0",
23
     "@react-native-community/masked-view": "0.1.6",
24
     "@react-native-community/masked-view": "0.1.6",
24
     "@react-native-community/push-notification-ios": "^1.1.1",
25
     "@react-native-community/push-notification-ios": "^1.1.1",
25
     "@react-native-community/slider": "^2.0.9",
26
     "@react-native-community/slider": "^2.0.9",

+ 1
- 1
src/managers/AsyncStorageManager.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
-import {AsyncStorage} from "react-native";
3
+import AsyncStorage from '@react-native-community/async-storage';
4
 
4
 
5
 /**
5
 /**
6
  * Singleton used to manage preferences.
6
  * Singleton used to manage preferences.

Loading…
Cancel
Save