FaridSafi / react-native-gifted-chat

💬 The most complete chat UI for React Native
https://gifted.chat
MIT License
13.51k stars 3.55k forks source link

AsyncStorage #2328

Open mustafa-sarshar opened 1 year ago

mustafa-sarshar commented 1 year ago

Issue Description

Since, the react-native package is already updated and the AsyncStorage is now a separate package, where it can be installed via, npm i @react-native-async-storage/async-storage, I guess, it is a good time to update the use of this package in your code.

Best regards Musto

Steps to Reproduce / Code Snippets

Any time, using the GiftedChat component.

Expected Results

It produces the following warning: AsyncStorage 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-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage

Additional Information

mustafa-sarshar commented 1 year ago

A temporary solution, may be to just ignore the warning as follows:

import { LogBox } from "react-native"; LogBox.ignoreLogs([ "AsyncStorage has been extracted from react-native core and will be removed in a future release.", ]);

But, I guess it is not a long-term solution.

regards, Musto