We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following where subtitle can be null/undefined, in which case we do not add a <Text> element for it:
subtitle
<Text>
<Hyperlink> <Text>{title}</Text> {subtitle && <Text>{subtitle}</Text>} </Hyperlink>
This causes Hyperlink to throw en error Cannot read property 'type' of null.
Cannot read property 'type' of null
I think this comes from the method parsing children, there is no safe-guard against null/undefined:
react-native-hyperlink/src/Hyperlink.js
Line 121 in 8cf4318
The text was updated successfully, but these errors were encountered:
fix null or empty children. #36
60e0ad1
Thanks for reporting @pierre-elie. This took a lot of time for my attention, but I've been able to get the fix out in v0.0.16
Sorry, something went wrong.
No branches or pull requests
Consider the following where
subtitle
can be null/undefined, in which case we do not add a<Text>
element for it:This causes Hyperlink to throw en error
Cannot read property 'type' of null
.I think this comes from the method parsing children, there is no safe-guard against null/undefined:
react-native-hyperlink/src/Hyperlink.js
Line 121 in 8cf4318
The text was updated successfully, but these errors were encountered: