React Native Advanced - caching with Async Storage - Tip

In the course, Part 2, Lesson 8, Offline Support, Mosh mentions the library in React Native core is deprecated. He mentions one from the community to replace it – but that one, too, is deprecated.

This one worked for me:

After installation, change the import statement in cache.js to:
import AsyncStorage from “@react-native-async-storage/async-storage”;

1 Like

Hi [dpickut]

I also try that as you mention but it not working :frowning:

Turning Wi-Fi off did not work for me. I just turned the server off and it worked: images disappeared.

Screen Shot 2022-06-17 at 1.01.36 pm