-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【提问】如何封装使用 AsyncStorage #139
Comments
@imzyf 我百度了下AsyncStorage这个好像是react native里面的,我对这个没研究,给你找了fb的官方文档,貌似有解决方法: asyncstorage
|
找到了一种方式:使用 Promise
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AsyncStorage 因为是异步的,怎么封装呢?比如:
将这个方法放在一个 class 中,然后在别的 class,new 这个 class,调用 getxxx 得到的是 undefined,但是其实是有值的,AsyncStorage 没有办法封装吗,只能哪里调用写哪里?
The text was updated successfully, but these errors were encountered: