I'm trying my app on Android Device and when I start the app the dubbuger give me 1 Error and 1 Warning.
The Error is:
Async Storage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. See https://github.com/react-native-community/react-native-async-storage
and the Warning:
Require cycle: node_modules/pouchdb-find/node_modules/pouchdb-utils/lib/index-browser.js -> node_modules/pouchdb-find/node_modules/pouchdb-utils/lib/index-browser.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
About the Error, I have follow what it said, I have done:
npm i --save @react-native-community/async-storage;
on my root project folder. And then
react-native link @react-native-community/async-storage
And At the last I have imported this: import AsyncStorage from '@react-native-community/async-storage'; on my project.
But I have always the same error. How can I solve in your opinion this error and this warning? Thank you!
npm uninstall @react-native/async-storage- user7944473import { AsyncStorage } from 'react-native'anywhere in your app. - Andrew