Skip to content

Instantly share code, notes, and snippets.

@zhengkai
Last active February 8, 2017 09:17
Show Gist options
  • Save zhengkai/cf9e0342bffec7b77f137127187723cc to your computer and use it in GitHub Desktop.
Save zhengkai/cf9e0342bffec7b77f137127187723cc to your computer and use it in GitHub Desktop.
React Native 调试

#React Native 开发tips

##Android 下调试

###开启调试面板 adb shell input keyevent 82

###真机刷新 adb shell input text "rr"

###AsyncStorage 存储限制

在 Android 下最多存储 6MB,单条最多 1MB,超过单条限制会报这个错误

Error: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

###Chrome 单独调试窗口

http://localhost:8081/debugger-ui 这页单独放一个 Window,使之成为唯一的 tab 页,否则如果不是当前活动 tab 会报下列错误

Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment