react-native-highlight-text-view 0.1.12 → 0.1.13

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.
@@ -220,10 +220,15 @@ class HighlightTextViewManager : SimpleViewManager<HighlightTextView>(),
220
220
  isFocusable = value
221
221
  isFocusableInTouchMode = value
222
222
  isEnabled = value
223
+ // Always keep multiline flag to preserve newlines, even when not editable
223
224
  inputType = if (value) {
224
225
  InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_FLAG_MULTI_LINE
225
226
  } else {
226
- InputType.TYPE_NULL
227
+ InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_FLAG_MULTI_LINE or InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
228
+ }
229
+ // Prevent keyboard from showing when not editable
230
+ if (!value) {
231
+ setShowSoftInputOnFocus(false)
227
232
  }
228
233
  }
229
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-highlight-text-view",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
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",