react-native-nitro-modules 0.25.1 → 0.25.2
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.
|
@@ -79,17 +79,11 @@ jsi::Value HybridObject::toObject(jsi::Runtime& runtime) {
|
|
|
79
79
|
object.setProperty(runtime, "__type", jsi::String::createFromUtf8(runtime, "NativeState<" + std::string(_name) + ">"));
|
|
80
80
|
#endif
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
// 8. Freeze the object to prevent accidentally setting wrong props on it that do nothing.
|
|
84
|
-
jsi::Function freeze = objectConstructor.getPropertyAsFunction(runtime, "freeze");
|
|
85
|
-
freeze.call(runtime, object);
|
|
86
|
-
#endif
|
|
87
|
-
|
|
88
|
-
// 9. Throw a jsi::WeakObject pointing to our object into cache so subsequent calls can use it from cache
|
|
82
|
+
// 8. Throw a jsi::WeakObject pointing to our object into cache so subsequent calls can use it from cache
|
|
89
83
|
JSICacheReference cache = JSICache::getOrCreateCache(runtime);
|
|
90
84
|
_objectCache[&runtime] = cache.makeShared(jsi::WeakObject(runtime, object));
|
|
91
85
|
|
|
92
|
-
//
|
|
86
|
+
// 9. Return it!
|
|
93
87
|
return object;
|
|
94
88
|
}
|
|
95
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-modules",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|