-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Nested <Text> clicks #1030
Comments
How abut this?
|
@brentvatne but then text formatting would be incorrect (multiple lines). I tried yours example with |
I think it's not possible currently, but could be implement with |
Yeah, we need to support this. cc @a2
|
I can look at this more tomorrow, but I was under the impression that we supported inline |
Ok, thanks everyone, this actually works fine, I was just passing wrong |
I know this is an old issue, but stumbled across it today after getting an error:
I got this from trying to insert a For me, the correct solution was a mix of your two answers: <Text>
<Text>{`This is `}</Text>
<Text
style={{color: '#0000ff'}}
onPress={() => { AlertIOS.alert('hi!') }}>
{`facebook.com`}
</Text>
<Text>{` link`}</Text>
</Text> |
Hey.
I want to render some hypertext, e.g
I tried programmatically splitting into
but obviously
onPress
wouldn't work, because nested text is transformed.onPress
is being set on the nested text?The text was updated successfully, but these errors were encountered: