Open flo-bit opened 4 months ago
same issue as in #77 The default text layouting behavior ignores starting and trailing whitespace, which should be configurable instead.
For anyone looking for a quick workaround, this is what I'm using currently:
<Text
paddingLeft={(text.match(/^\s*/) || [''])[0].length * 10}
>
I want to show some text containing multiple lines of code, with some lines being indented by whitespace at the beginning, but I can't get this to work, is this supported/a bug?
this is what I tried: