From 42b720bdcd85cb08b36c053c0f0d42d98a1f03d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=BBelawski?= Date: Mon, 15 Jun 2026 20:04:52 +0200 Subject: [PATCH 1/2] debug --- apps/fabric-example/App.tsx | 105 ++++++- apps/fabric-example/ios/Podfile | 4 +- apps/fabric-example/ios/Podfile.lock | 292 +++++------------- log.txt | 122 ++++++++ .../NativeModules/JSIWorkletsModuleProxy.cpp | 12 + .../cpp/worklets/SharedItems/Serializable.cpp | 90 ++++-- .../cpp/worklets/SharedItems/Serializable.h | 14 +- 7 files changed, 394 insertions(+), 245 deletions(-) create mode 100644 log.txt diff --git a/apps/fabric-example/App.tsx b/apps/fabric-example/App.tsx index d5d22b204344..7fcaa0f5e17e 100644 --- a/apps/fabric-example/App.tsx +++ b/apps/fabric-example/App.tsx @@ -1,3 +1,104 @@ -import App from 'common-app'; +import { useEffect } from 'react'; +import { Button, StyleSheet, View } from 'react-native'; +import { + scheduleOnRN, + scheduleOnUI, + createWorkletRuntime, + scheduleOnRuntime, + createSerializable, +} from 'react-native-worklets'; -export default App; +const workerRuntime = createWorkletRuntime(); + +export default function App() { + useEffect(() => { + scheduleOnUI(() => { + function foo() { + const _ = new Array(10000).fill(0); + requestAnimationFrame(foo); + } + foo(); + }); + }); + + return ( + +