awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
919 stars 266 forks source link

EXPO SDK 41 not working because of @react-native-community/async-storage #642

Open manusharian opened 3 years ago

manusharian commented 3 years ago

Hello, I've noticed that the @react-native-community/async-storage package is for some time @react-native-async-storage/async-storage inside expo sdk 41. Is there timeframe for this update if at all?

mdebo commented 3 years ago

Hello

I have exactly the same problem. @react-native-community/async-storage moved to @react-native-async-storage/async-storage. This is a dependency of expo and therefore I can't upgrade to expo sdk 41.

mdebo commented 3 years ago

Is there any timeframe for this update?

thanks

tien commented 3 years ago

Also amplify-js is depended on @react-native-async-storage/async-storage. So if you are using both packages, and most likely you will if you are using AWS AppSync, you'll end up dependent on 2 packages of AsyncStorage

mdebo commented 3 years ago

@tien appsync javascript sdk dependencies have to be upgraded. @react-native-community/async-storage has moved to @react-native-async-storage/async-storage. Expo is using it in his latest version (41). So to be able to use Appsync js sdk this dependency should be updated.

noo-bass commented 3 years ago

This includes a dependency on @redux-offline/redux-offline@2.5.2-native.3 which also uses @react-native-async-storage/async-storage fixed here https://github.com/redux-offline/redux-offline/releases/tag/2.6.0-native.1