Debugging React Native

GitHub

步驟

1.安裝

$ brew update && brew cask install react-native-debugger

2.使用

為了能使用 下圖紅色框部分(Redux Dev) 需要再code內加入

window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()

ps.可以在console中打印出asyncStorage

Sample From cheerazar github

store.js

App.js (counter is a component)

Another sample

store.js

App.js

參考

Last updated