You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great module! I'd like to propose a feature request, and see if other people would be interested in this:
I have a use case where I need to match text fragments and replace them with some other texts which need to be wrapped in <TouchableOpacity /> components, to make them easily clickable/tapable. Currently, as renderText only accepts strings as output values, this is not possible. But this also implies that the root component returned by <ParsedText /> needs to be a <View> component rather than a <Text> component, since React Native only does not allow <View> components to be nested in <Text> components.
What do you think?
The text was updated successfully, but these errors were encountered:
WaldoJeffers
changed the title
is:issue is:open [feature request] Replace matched text by a component
[feature request] Replace matched text by a component
Sep 20, 2017
This is great, but currently, today, react-native doesn't support arbitrary components embedded inside a text-components. -- This may be a difficult feature to build, as you'd have to split text subcomponents into bits, and figure out how the rendering & layout would work. If a PR has this working, I'd be happy to review it!
Hello,
Great module! I'd like to propose a feature request, and see if other people would be interested in this:
I have a use case where I need to match text fragments and replace them with some other texts which need to be wrapped in
<TouchableOpacity />
components, to make them easily clickable/tapable. Currently, asrenderText
only accepts strings as output values, this is not possible. But this also implies that the root component returned by<ParsedText />
needs to be a<View>
component rather than a<Text>
component, since React Native only does not allow<View>
components to be nested in<Text>
components.What do you think?
The text was updated successfully, but these errors were encountered: