react-native-nitro-web-image 0.13.1 → 0.14.0
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.
|
@@ -8,7 +8,7 @@ import androidx.annotation.Nullable;
|
|
|
8
8
|
import com.facebook.react.bridge.NativeModule;
|
|
9
9
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
10
10
|
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
|
11
|
-
import com.facebook.react.
|
|
11
|
+
import com.facebook.react.BaseReactPackage;
|
|
12
12
|
import com.facebook.react.uimanager.ViewManager;
|
|
13
13
|
import com.margelo.nitro.core.HybridObject;
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ import java.util.HashMap;
|
|
|
17
17
|
import java.util.List;
|
|
18
18
|
import java.util.function.Supplier;
|
|
19
19
|
|
|
20
|
-
public class NitroWebImagePackage extends
|
|
20
|
+
public class NitroWebImagePackage extends BaseReactPackage {
|
|
21
21
|
@Nullable
|
|
22
22
|
@Override
|
|
23
23
|
public NativeModule getModule(String name, ReactApplicationContext reactContext) {
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/web/image/AsyncImageLoadOptions.kt
CHANGED
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.web.image
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -53,6 +54,38 @@ data class AsyncImageLoadOptions(
|
|
|
53
54
|
) {
|
|
54
55
|
/* primary constructor */
|
|
55
56
|
|
|
57
|
+
override fun equals(other: Any?): Boolean {
|
|
58
|
+
if (this === other) return true
|
|
59
|
+
if (other !is AsyncImageLoadOptions) return false
|
|
60
|
+
return Objects.deepEquals(this.priority, other.priority)
|
|
61
|
+
&& Objects.deepEquals(this.forceRefresh, other.forceRefresh)
|
|
62
|
+
&& Objects.deepEquals(this.cacheKey, other.cacheKey)
|
|
63
|
+
&& Objects.deepEquals(this.continueInBackground, other.continueInBackground)
|
|
64
|
+
&& Objects.deepEquals(this.allowInvalidSSLCertificates, other.allowInvalidSSLCertificates)
|
|
65
|
+
&& Objects.deepEquals(this.scaleDownLargeImages, other.scaleDownLargeImages)
|
|
66
|
+
&& Objects.deepEquals(this.queryMemoryDataSync, other.queryMemoryDataSync)
|
|
67
|
+
&& Objects.deepEquals(this.queryDiskDataSync, other.queryDiskDataSync)
|
|
68
|
+
&& Objects.deepEquals(this.decodeImage, other.decodeImage)
|
|
69
|
+
&& Objects.deepEquals(this.allowHardware, other.allowHardware)
|
|
70
|
+
&& Objects.deepEquals(this.progressive, other.progressive)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
override fun hashCode(): Int {
|
|
74
|
+
return arrayOf(
|
|
75
|
+
priority,
|
|
76
|
+
forceRefresh,
|
|
77
|
+
cacheKey,
|
|
78
|
+
continueInBackground,
|
|
79
|
+
allowInvalidSSLCertificates,
|
|
80
|
+
scaleDownLargeImages,
|
|
81
|
+
queryMemoryDataSync,
|
|
82
|
+
queryDiskDataSync,
|
|
83
|
+
decodeImage,
|
|
84
|
+
allowHardware,
|
|
85
|
+
progressive
|
|
86
|
+
).contentDeepHashCode()
|
|
87
|
+
}
|
|
88
|
+
|
|
56
89
|
companion object {
|
|
57
90
|
/**
|
|
58
91
|
* Constructor called from C++
|
|
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
|
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
59
|
+
# Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
|
|
60
|
+
"SWIFT_INSTALL_OBJC_HEADER" => "NO",
|
|
59
61
|
})
|
|
60
62
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-web-image",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "A superfast in-memory Image type and view component for React Native Web, built with Nitro!",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.6",
|
|
60
|
-
"nitrogen": "0.35.
|
|
60
|
+
"nitrogen": "0.35.5",
|
|
61
61
|
"react": "19.1.0",
|
|
62
62
|
"react-native": "0.81.0",
|
|
63
|
-
"react-native-nitro-modules": "0.35.
|
|
63
|
+
"react-native-nitro-modules": "0.35.5",
|
|
64
64
|
"typescript": "5.8.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|