@chaitrabhairappa/react-native-rich-text-editor 3.4.2 → 3.4.3

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.
@@ -133,7 +133,7 @@ class RichTextEditorView(context: Context) : androidx.appcompat.widget.AppCompat
133
133
  init {
134
134
  density = context.resources.displayMetrics.density
135
135
  minHeightPx = 44 * density
136
- calculatedHeight = minHeightPx
136
+ calculatedHeight = 0f
137
137
  bottomBorderPaint.strokeWidth = density
138
138
 
139
139
  val paddingHorizontal = (12 * density).toInt()
@@ -1166,13 +1166,11 @@ class RichTextEditorView(context: Context) : androidx.appcompat.widget.AppCompat
1166
1166
  setSelection(spannable.length)
1167
1167
  }
1168
1168
  isInternalChange = false
1169
- post {
1170
- if (numberOfLinesValue > 0 && !isEnabled) {
1171
- scrollTo(0, 0)
1172
- applyEllipsisIfNeeded()
1173
- }
1174
- updateContentSize()
1169
+ if (numberOfLinesValue > 0 && !isEnabled) {
1170
+ scrollTo(0, 0)
1171
+ applyEllipsisIfNeeded()
1175
1172
  }
1173
+ updateContentSize()
1176
1174
  }
1177
1175
 
1178
1176
  fun getTextContent(): String = text.toString()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaitrabhairappa/react-native-rich-text-editor",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "A high-performance native rich text editor for React Native (New Architecture / Fabric only)",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",