react-native-highlight-text-view 0.1.13 → 0.1.14
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.
|
@@ -88,10 +88,12 @@ class HighlightTextViewManager : SimpleViewManager<HighlightTextView>(),
|
|
|
88
88
|
horizontalAlign = null
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// Determine vertical gravity
|
|
91
|
+
// Determine vertical gravity - preserve existing if not specified
|
|
92
92
|
val vGravity = when (verticalAlign) {
|
|
93
93
|
"top" -> Gravity.TOP
|
|
94
94
|
"bottom" -> Gravity.BOTTOM
|
|
95
|
+
"center" -> Gravity.CENTER_VERTICAL
|
|
96
|
+
null -> view?.gravity?.and(Gravity.VERTICAL_GRAVITY_MASK) ?: Gravity.CENTER_VERTICAL
|
|
95
97
|
else -> Gravity.CENTER_VERTICAL
|
|
96
98
|
}
|
|
97
99
|
|
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.14",
|
|
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",
|