farhoudshapouran / react-native-highlighter

A library for 🌈 highlighting specific contents and enabling interaction with them.
MIT License
47 stars 3 forks source link

Extra markers text style #1

Open deepakkumardk opened 3 months ago

deepakkumardk commented 3 months ago

Hi @farhoudshapouran Thanks for the great library.

I have a query regarding highlight text props for extraMarkers, how do I also change the text style like for the below code, I also change the text color from black to white.

const extraMarkers = new Highlight({ keywords: ['user interface', 'highlight'], style: { backgroundColor: '#F7DB6A' }, });

farhoudshapouran commented 4 weeks ago

Hi @deepakkumardk sorry for the late reply, you can use it like this:

const extraMarkers = new Highlight({ keywords: ['user interface', 'highlight'], style: { backgroundColor: '#F7DB6A', color: '#FFFFFF' }, });