Display inline log in flipper into multiple line

2.2k views Asked by At

I'm using react native and the new flipper debugger. I have a very simple question, currently when i log a big object it only display in one line like this :

enter image description here

Is there a way to display it in a better way like in chrome debugger tools like this : enter image description here

As it would be easier to navigate inside a log of an object with chrome like display instead of scrolling horizontally through one line.

Thanks in advance

1

There are 1 answers

0
Pavot On

Flipper developers have plans to add multiline support.

Until then you can try formatting your logs using this pattern:

console.log(JSON.stringify(object, null, 2))