rn-highlighter
v0.1.0
Published
rn-highlighter is a simple and effective way to highlight text in React Native applications.
Maintainers
Readme
rn-highlighter
rn-highlighter is a simple and effective way to highlight text in React Native applications.
Installation
npm install rn-highlighterUsage
<Highlighter
text="rn-highlighter is a simple and effective way to highlight text in React Native applications."
highlight="React Native"
highlightStyle={{ backgroundColor: 'orange', fontWeight: 'bold' }}
textStyle={{ fontSize: 16 }}
/>Props
| Prop | Type | Description |
| ---------------- | ------------ | -------------------------------------- |
| text | string | Full text to display |
| highlight | string | Substring to highlight within the text |
| highlightStyle | TextStyle? | Custom style for the highlighted part |
| textStyle | TextStyle? | Style for the overall text |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
