-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Text element does not accept numbers in properties #231
Comments
https://github.com/magicismight/react-native-svg-example You can try this Example. |
Do you see
|
Thanks for reporting this.
But I haven't expected this would go wrong:
|
Good! Seems like react compiler translates all literal insertions to strings. Please look also on const n = 111;
<Text x={n}>some text</Text> |
Fix is shipped in 5.1.3 |
Thank you! 5.1.3 works within our application now. |
Thats work:
But this does not:
This also does not work:
I forked
magicismight/react-native-svg-example
and show bugs in theexpose-text-bug
branch: https://github.com/vovkasm/react-native-svg-example/tree/expose-text-bugTo show:
git clone https://github.com/vovkasm/react-native-svg-example.git
git checkout expose-text-bug
npm install
npm start
react-native run-ios
I did not test android, only iOS.
BTW. Internal example in
Example
folder completely broken and requires bunch of exponent staff. In current stage it cannot be used for testing. (((The text was updated successfully, but these errors were encountered: