Skip to content

Commit b4150a1

Browse files
authored
Merge pull request #162 from callstack/rn-75
fix: Resolve an issue with the Android build for React Native 0.75.x.
2 parents 590fbb7 + 9bab2cc commit b4150a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/src/main/java/com/reactnativecommunity/imageeditor/ImageEditorModuleImpl.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
196196
y: Int,
197197
width: Int,
198198
height: Int,
199-
headers: HashMap<String, Any?>?
199+
headers: HashMap<String, Any>?
200200
): Bitmap? {
201201
return openBitmapInputStream(uri, headers)?.use {
202202
// Efficiently crops image without loading full resolution into memory
@@ -258,7 +258,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
258258
rectHeight: Int,
259259
outputWidth: Int,
260260
outputHeight: Int,
261-
headers: HashMap<String, Any?>?
261+
headers: HashMap<String, Any>?
262262
): Bitmap? {
263263
Assertions.assertNotNull(outOptions)
264264

@@ -337,7 +337,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
337337
}
338338
}
339339

340-
private fun openBitmapInputStream(uri: String, headers: HashMap<String, Any?>?): InputStream? {
340+
private fun openBitmapInputStream(uri: String, headers: HashMap<String, Any>?): InputStream? {
341341
return if (uri.startsWith("data:")) {
342342
val src = uri.substring(uri.indexOf(",") + 1)
343343
ByteArrayInputStream(Base64.decode(src, Base64.DEFAULT))

0 commit comments

Comments
 (0)