From 03188d55d5d5ac56dddede507132e68889b5d658 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 21 Jan 2025 14:43:22 +0100 Subject: [PATCH] chore: Use actual types --- .../react-native-nitro-modules/cpp/views/CachedProp.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native-nitro-modules/cpp/views/CachedProp.hpp b/packages/react-native-nitro-modules/cpp/views/CachedProp.hpp index e1caa908..370d4dee 100644 --- a/packages/react-native-nitro-modules/cpp/views/CachedProp.hpp +++ b/packages/react-native-nitro-modules/cpp/views/CachedProp.hpp @@ -33,9 +33,9 @@ struct CachedProp { // jsi::Value hasn't changed - no need to convert it again! return oldProp; } - auto converted = JSIConverter::fromJSI(runtime, value); - auto cache = JSICache::getOrCreateCache(runtime); - auto cached = cache.makeShared(jsi::Value(runtime, value)); + T converted = JSIConverter::fromJSI(runtime, value); + JSICacheReference cache = JSICache::getOrCreateCache(runtime); + OwningReference cached = cache.makeShared(jsi::Value(runtime, value)); return CachedProp(std::move(converted), std::move(cached), /* isDirty */ true); } };