I'm trying to get the onPress to work, but "hi" is not being printed. In fact, the gray default background that should show behind the text when it is clicked does not show. If I replace the nested text with a TouchableHighlight component, it does print. However, this needs to be a continuous flow of text that wraps onto the next line, so TouchableHighlight will not be suitable.
<Text>
<Text>Thanks for visiting the app! Please click </Text>
<Text onPress={() => { console.log("hi") }}> here right now! </Text>
<Text>to sign in</Text>
</Text>
The actual code is slightly more complex than the above, but it's basically a few text components nested inside one larger text component (this is so the text can wrap to next line and looks like one piece of text). Any ideas on how to get onPress for the text component to work? Thanks!
What it should look like (bold text represents what's clickable):
Please click here
right now to sign in.
What it should NOT look like (cannot use View as outside holder instead of text):
Please click here right to sign in.
now