Skip to content
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

[RN] Taro.getStorage then catch 方法不执行 android手机[huawei META9] #1189

Closed
vfiee opened this issue Nov 20, 2018 · 4 comments
Closed
Assignees

Comments

@vfiee
Copy link

vfiee commented Nov 20, 2018

问题描述
[RN] Taro.getStorage then catch 方法不执行

复现步骤
[复现问题的步骤]

  1. Taro.getStorage({key:'key'}).then(res=>{ console.log(res) }).catch(err=>{console.error(err)})
  2. RN环境中运行
Taro.getStorage({key:'key'}).then(res=>{ console.log(res) }).catch(err=>{console.error(err)})

期望行为
执行then或者catch方法

报错信息
没有报错,函数不执行[IOS]手机正常

系统信息

  • 操作系统: [e.g. huawei META 9]
  • Taro 版本 [e.g. v.1.1.8]
  • Node.js 版本 [e.g. v10.9.0]
  • 报错平台 [RN]
@taro-bot
Copy link

taro-bot bot commented Nov 20, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Nov 20, 2018

CC @Bless-L

@taro-bot
Copy link

taro-bot bot commented Nov 20, 2018

CC @Pines-Cheng

@Bless-L
Copy link
Member

Bless-L commented Nov 20, 2018

刚跑了一下,目测是因为没有安装@tarojs/taro-rn这个包。这个应该在默认模板里就有的,问题修复中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants