forked from Astrocoders/react-native-selectable-text
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Sorry for the basic question. When the text is selected and a menu option is selected, should the text be highlighted in the colour of the highlightColour prop? If so, I cannot get it to work. This is my code. Is anyone able to shed some light on this?
const child = (
<Text>Lorem Ipsum</Text>
);
return (
<SelectableText
menuItems={["Add", "Edit", "Delete"]}
// Use the child we defined above
textComponentProps={
{ children: child }
}
value="Lorem"
TextComponent={Text}
highlights={0, 6}
highlightColor='#FFCC99'
onSelection={({ eventType, content, selectionStart, selectionEnd }) => {console.log)}}
)
/>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels