From 097ea5379a2a5744c530aad0b9f7c4d5045adc91 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Fri, 1 May 2020 16:57:37 +0200 Subject: [PATCH] use react native community async storage --- package.json | 1 + src/managers/AsyncStorageManager.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e9098c5..f895d56 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "@nartc/react-native-barcode-mask": "^1.1.9", + "@react-native-community/async-storage": "^1.9.0", "@react-native-community/masked-view": "0.1.6", "@react-native-community/push-notification-ios": "^1.1.1", "@react-native-community/slider": "^2.0.9", diff --git a/src/managers/AsyncStorageManager.js b/src/managers/AsyncStorageManager.js index 82bb56f..f0c96fb 100644 --- a/src/managers/AsyncStorageManager.js +++ b/src/managers/AsyncStorageManager.js @@ -1,6 +1,6 @@ // @flow -import {AsyncStorage} from "react-native"; +import AsyncStorage from '@react-native-community/async-storage'; /** * Singleton used to manage preferences.