Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to debug css in react native app?

Debugging css inside chrome makes life easy. I am working on a react native app. Everytime I make any css change I have to refresh my simulator to check it. Is there any other workaround for this ?

like image 680
Jitin Maherchandani Avatar asked Jul 25 '17 08:07

Jitin Maherchandani


People also ask

How do you debug CSS in React Native?

To use Chrome's DevTools with React Native, first make sure you're connected to the same Wi-Fi, then press command + R if you're using macOS, or Ctrl + M on Windows/Linux. When the developer menu appears, choose Debug Js Remotely . This will open the default JS debugger.

How do I debug CSS code?

While you can not "debug" CSS, because it is not a scripting language, you can utilize the Chrome DevTools Elements panel to inspect an element & view the Styles pane on the right. This will give you insights as to the styles being overridden or ignored (line threw).

How do I debug with React Native debugger?

In App Developer Menu On Android emulator, you need to press command + M. Debug JS Remotely − Used for activating debugging inside browser developer console. Enable Live Reload − Used for enabling live reloading whenever your code is saved. The debugger will open at localhost:8081/debugger-ui.


Video Answer


1 Answers

Probably the most likely answer for you is in fact as I posted in my comment. Chrome debugging using react-devtools: https://facebook.github.io/react-native/docs/debugging.html#react-developer-tools

like image 102
Finbarr O'B Avatar answered Sep 28 '22 04:09

Finbarr O'B