Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating markup for React Native components. #380

Closed
Guliy opened this issue Nov 22, 2023 · 1 comment
Closed

Generating markup for React Native components. #380

Guliy opened this issue Nov 22, 2023 · 1 comment

Comments

@Guliy
Copy link
Contributor

Guliy commented Nov 22, 2023

version

"version": "0.4.56"

problem

There is 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 tags
And RN compiler thorws error for this space:
“Unexpected text node: . A text node cannot be a child of a .”
For the web its works with warning, but for app on device - crash.

expected behavior

Expected that there would be no extra spaces between tags

@borkdude
Copy link
Member

Should be fixed in v0.4.58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants