From 382c5a4e508e2ad46a30380ed2e58ee83e696bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Salwa?= Date: Fri, 30 Oct 2020 19:59:05 +0100 Subject: [PATCH] fix(react-native): Change @react-native-community/async-storage to @react-native-async-storage/async-storage (#314) --- README.md | 2 +- src/amplitude-client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce4535ef..1822141b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ A JavaScript SDK for tracking events and revenue to [Amplitude](https://www.ampl This library now supports react-native. It has two dependencies on react-native modules you will have to install yourself: * [react-native-device-info](https://www.npmjs.com/package/react-native-device-info) Tested with version 3.1.4 -* [@react-native-community/async-storage](https://www.npmjs.com/package/@react-native-community/async-storage) Tested with version 1.6.2 +* [@react-native-async-storage/async-storage](https://www.npmjs.com/package/@react-native-async-storage/async-storage) Tested with version 1.6.2 ## Node.js Please visit [Amplitude-Node](https://github.com/amplitude/Amplitude-Node) for our Node SDK. diff --git a/src/amplitude-client.js b/src/amplitude-client.js index 2f5563d8..ed37b5e3 100644 --- a/src/amplitude-client.js +++ b/src/amplitude-client.js @@ -23,7 +23,7 @@ let Platform; let DeviceInfo; if (BUILD_COMPAT_REACT_NATIVE) { const reactNative = require('react-native'); - AsyncStorage = require('@react-native-community/async-storage').default; + AsyncStorage = require('@react-native-async-storage/async-storage').default; Platform = reactNative.Platform; DeviceInfo = require('react-native-device-info'); }