Open ujwal-setlur opened 4 years ago
I believe this is rather due to not supporting text nodes as children of <span>
(as we found over Slack that using the text
property instead gets it to work).
It looks like it used to work: https://react-nativescript.netlify.app/docs/components/label, so I wonder what's caused the regression. I'll look into it next time.
Does<span>my text</span>
also crashes or is it just <span>{myTextVar}</span>
?
@Lelelo1 I haven’t checked, but I would guess both – both should lead to the text content being passed into React.createElement as children (rather than as the “text” prop).