Async-storage: AsyncStorage warning never disappears after updating to this version

Created on 24 Jun 2019  路  7Comments  路  Source: react-native-async-storage/async-storage

So i was using the old AsyncStorage, and all of a sudden a warning started to show up to replace it for this new one. After I did it, the warning keeps showing up, i have absolutely no usage of react-native-async-storage in my code. Maybe 3rd party library code is still using this?

I tested everything I found and still couldn't remove it, I don't want to hide the warning by using the yellowBox thing, I do want to make it disappear by stop using it.

How can I solve this? Thanks.

question

Most helpful comment

Well, you can search through your node_modules using grep:
grep -rnw 'node_modules' -e 'AsyncStorage' or some similar pattern for AsyncStorage (like AsyncStorage.getItem)

All 7 comments

If you don't use Community's AsyncStorage, then it's probably one of your dependency (or dependency of dependency) to use one from RN Core.

Closing down.

Sorry I missed this answer @Krizzu. Yea it's probably that. Any idea on how to search for this dependency? Attempted doing a file search on node_modules, and i don't get any result when searching for 'async-storage'. Thanks.

@msqar have you tried yarn list ?

Oh, i don't use yarn, i use npm. You mean to list all the latest dependencies or the ones i'm falling behind? I got quite a few. I have to check 1 by 1 through all the code?

Well, you can search through your node_modules using grep:
grep -rnw 'node_modules' -e 'AsyncStorage' or some similar pattern for AsyncStorage (like AsyncStorage.getItem)

Thanks! it worked doing grep. I will check the libs i got using it like sentry and reactotron.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Waqas-Jani picture Waqas-Jani  路  28Comments

mxmzb picture mxmzb  路  19Comments

srivatsav picture srivatsav  路  26Comments

josmithua picture josmithua  路  20Comments

hms111111 picture hms111111  路  24Comments