react-native-highlight-text-view 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,11 +47,11 @@ export default function App() {
|
|
|
47
47
|
| `color` | `string` | `#FFFF00` | Background highlight color (hex format) |
|
|
48
48
|
| `textColor` | `string` | - | Text color (hex format) |
|
|
49
49
|
| `textAlign` | `string` | `left` | Text alignment. Supports: `'left'`, `'center'`, `'right'`, `'justify'`, `'flex-start'`, `'flex-end'`, `'top'`, `'bottom'`, `'top-left'`, `'top-center'`, `'top-right'`, `'bottom-left'`, `'bottom-center'`, `'bottom-right'` |
|
|
50
|
-
| `verticalAlign` | `'top' \| 'center' \| 'middle' \| 'bottom'` | - | Vertical alignment (iOS only). Alternative to using combined `textAlign` values |
|
|
50
|
+
| `verticalAlign` | `'top' \| 'center' \| 'middle' \| 'bottom'` | - | Vertical alignment (iOS only). Alternative to using combined `textAlign` values. **Note:** Android does not support vertical alignment and will use default vertical positioning. |
|
|
51
51
|
| `fontFamily` | `string` | - | Font family name |
|
|
52
52
|
| `fontSize` | `string` | `32` | Font size in points |
|
|
53
|
-
| `lineHeight` | `string` |
|
|
54
|
-
| `highlightBorderRadius` | `string` | `
|
|
53
|
+
| `lineHeight` | `string` | `0` | Line height override (0 means use default line height) |
|
|
54
|
+
| `highlightBorderRadius` | `string` | `0` | Border radius for the highlight background |
|
|
55
55
|
| `padding` | `string` | `4` | Padding around each character highlight (expands background outward) |
|
|
56
56
|
| `paddingLeft` | `string` | - | Left padding for character highlight |
|
|
57
57
|
| `paddingRight` | `string` | - | Right padding for character highlight |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-highlight-text-view",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "A native text input for React Native that supports inline text highlighting",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|