N
N
Newbie Ivanovich2019-07-16 05:13:31
JavaScript
Newbie Ivanovich, 2019-07-16 05:13:31

Should I use Depricate AsyncStorage for react-native or is it better to use the new AsyncStorage?

I am writing an application using react-native + Expo.
The new AsyncStorage from the @react-native-community/async-storage package throws errors when working with expo. If you use AsyncStorage from react-native, then there are no errors.
If I use the old AsyncStorage from react-native, what problems will I face?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2019-07-16
@NovichokIvanovich

You just have to understand that AsyncStorage from react-native is no longer supported. This means that if there is currently a bug in the package, it will be fixed in @react-native-community/async-storage. But if you are going to use 2 functions: put, and get it, then I think there will be nothing to worry about. Even more, if one day you decide to install @react-native-community/async-storage, then the functions are backwards compatible so your application should not feel the replacement of the package.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question