diff --git a/App.js b/App.js index 9470401..c13206d 100644 --- a/App.js +++ b/App.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; -import { Text, Button, ScrollView, Image, AsyncStorage, Platform } from 'react-native'; +import { Text, Button, ScrollView, Image, Platform } from 'react-native'; +import AsyncStorage from '@react-native-community/async-storage'; // import PushNotification from 'react-native-push-notification'; // import NotificationActions from 'react-native-ios-notification-actions'; // import DeviceInfo from 'react-native-device-info'; diff --git a/Countly.js b/Countly.js index 1cd8ef9..1e63105 100644 --- a/Countly.js +++ b/Countly.js @@ -1,13 +1,13 @@ import { Platform, NativeModules, - AsyncStorage, Alert, Dimensions, AppState, PushNotificationIOS, DeviceEventEmitter } from "react-native"; +import AsyncStorage from "@react-native-community/async-storage"; import DeviceInfo from "react-native-device-info"; import BackgroundTimer from "react-native-background-timer"; diff --git a/package.json b/package.json index 86139c2..3709f82 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "countly" ], "dependencies": { + "@react-native-community/async-storage": "^1.4.2", "crypto-js": "^3.1.9-1", "react-native-background-timer": "^2.0.0", "react-native-device-info": "^0.15.3", diff --git a/util.js b/util.js index e583390..de09b5a 100644 --- a/util.js +++ b/util.js @@ -1,4 +1,4 @@ -import { AsyncStorage } from 'react-native'; +import AsyncStorage from '@react-native-community/async-storage'; import SHA256 from 'crypto-js/sha256'; import pinch from 'react-native-pinch'; import Countly from './Countly';