Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Support props.children #52

Open
KVinS opened this issue May 15, 2020 · 1 comment
Open

Support props.children #52

KVinS opened this issue May 15, 2020 · 1 comment

Comments

@KVinS
Copy link

KVinS commented May 15, 2020

Hello. Why not implement text support between tags?
<SelectableText>Value</SelectableText>
It is necessary for compatibility with react-native-htmlview eg
I had to make a wrapper. Lol

export const MySelectableText = (props) => {
    return (
        <SelectableText {...props} value={props.children}/>
    );
}
@nsantacruz
Copy link
Contributor

See my pull request (#53) which allows for more natural support with react-native-htmlview by allowing you to pass in an alternate TextComponent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants