Fork me on GitHub
#squint
<
2023-11-22
>
Leaf Garland03:11:18

Apologies if this is common knowledge, but I wanted to try out squint and since I had deno installed I tried this and it worked perfectly. It's a neat one-liner to try it out. deno run --allow-read npm:squint-cljs@latest repl

🎉 5
guliy07:11:03

There is one problem with generated markup for React Native (

#jsx [:View
        [:Text “Hello”]
        [:Text “World!“]]
translates to
return <View><Text>Hello</Text> <Text>World!</Text></Vew>;

Here we have space between <Text> tags And RN compiler thorws error for this space: “Unexpected text node: . A text node cannot be a child of a <View>.” For the web its works with warning, but for app on device - crash. @borkdude

đź‘Ť 2
âś… 2
borkdude08:11:18

Ok can you post an issue? Will fix today

guliy08:11:19

sure! thanks

guliy08:11:57

Done!

đź‘Ť 2
guliy10:11:21

Perfect! many thanks