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)}}
)
/>
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?