From b49c0de7f82fe5e843da6906f1a6aa4bf7d79986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=BBelawski?= <40713406+tjzel@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:26:31 +0200 Subject: [PATCH] Fix configuring unconfigurable properties (#6098) ## Summary Fixes #6066. When implementing more meaningful way of shareable freezing I overlooked the case when some properties would be unconfigurable. This PR fixes this. ## Test plan New button in `ShareableFreezing` example checks that it doesn't throw anymore. --- .../src/examples/ShareableFreezingExample.tsx | 27 ++++++++++++++++--- .../react-native-reanimated/src/shareables.ts | 4 +++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/apps/common-app/src/examples/ShareableFreezingExample.tsx b/apps/common-app/src/examples/ShareableFreezingExample.tsx index f4fa2e3ab7d..6bd98298c9a 100644 --- a/apps/common-app/src/examples/ShareableFreezingExample.tsx +++ b/apps/common-app/src/examples/ShareableFreezingExample.tsx @@ -68,6 +68,13 @@ export default function FreezingShareables() { onPress={tryModifyConvertedInt32Array} /> + + 🤫 +