Skip to content

Commit

Permalink
fix(react-native): Change @react-native-community/async-storage to @r…
Browse files Browse the repository at this point in the history
…eact-native-async-storage/async-storage (#314)
  • Loading branch information
armata007 authored Oct 30, 2020
1 parent 1a658a6 commit 382c5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 382c5a4

Please sign in to comment.