UNPKG

rn-text-highlight

Version:
26 lines (18 loc) 639 B
# rn-text-highlight ### Installation ```bash npm i rn-text-highlight ``` ## base useage ```js <RnTextHighlight originText={employeeName} keyword={keyword} /> ``` ## demo gif <img src="./.github/images/texthighlight.gif" /> ## Available props | Name | Type | Default | Description | | ------------ | -------- | --------------- | ---------------- | | originText | `string` | `-` | The default text | | keyword | `string` | `-` | keyword | | keywordStyle | `Object` | `color: "#f40"` | keyword style | | textStyle | `Object` | `-` | text style |