How To Use React Dev Tools With React Native?
Solution 1:
With React Native 0.43 or higher you should use standalone DevTools app: https://github.com/facebook/react-devtools/tree/master/packages/react-devtools
Solution 2:
You can simply install the React DevTools as a chrome extension, the have full React Native support.. They work in my current setup with react native version 0.26.
Solution 3:
I had issues with connecting react native (both iOS and android) to the latest (react-devtools v4). By installing v3 (changing the dependency in package.json to be "react-devtools": "^3",
, it worked. This also includes using the Chrome console to 'inspect' components with $r
.
Make sure you don't have a global react-devtools v4. npm rm -g react-devtools@^4
, then npm i -g react-devtools@^3
. This way, you can use react-devtools
to launch the standalone app.
Post a Comment for "How To Use React Dev Tools With React Native?"