Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Use separate AsyncStorage package #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion Countly.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down