react-native-text-reader 2.1.0 → 2.1.1

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.
@@ -185,21 +185,6 @@ class TextReaderModule(reactContext: ReactApplicationContext) :
185
185
  }
186
186
  }
187
187
 
188
- private fun blockToMap(block: Text.TextBlock): WritableMap {
189
- return Arguments.createMap().apply {
190
- putString("text", block.text)
191
- block.boundingBox?.let { putMap("frame", rectToMap(it)) }
192
- block.cornerPoints?.let { putArray("cornerPoints", cornerPointsToMap(it)) }
193
-
194
- val linesArray = Arguments.createArray()
195
- block.lines.forEach { line ->
196
- linesArray.pushMap(lineToMap(line))
197
- }
198
- putArray("lines", linesArray)
199
- putArray("recognizedLanguages", langToMap(block.recognizedLanguage))
200
- }
201
- }
202
-
203
188
  @NonNull
204
189
  private fun getScriptTextRecognizerOptions(@Nullable script: String?): TextRecognizerOptionsInterface {
205
190
  return when (script) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-text-reader",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A React Native library for OCR using Vision Framework on iOS and ML Kit on Android. Supports Expo development builds, detailed OCR metadata, and Android 16KB page size compatibility.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",