File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"android" : " react-native run-android" ,
7
7
"ios" : " react-native run-ios" ,
8
- "start" : " cd ../Shared && yarn start" ,
8
+ "start" : " cd ../Shared && yarn start --reset-cache " ,
9
9
"typescript" : " tsc --noEmit" ,
10
10
"pods" : " cd ios && bundle install && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install" ,
11
11
"build:android" : " cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a" ,
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"android" : " react-native run-android" ,
7
7
"ios" : " react-native run-ios" ,
8
- "start" : " cd ../Shared && IS_NEW_ARCH=false yarn start" ,
8
+ "start" : " cd ../Shared && IS_NEW_ARCH=false yarn start --reset-cache " ,
9
9
"typescript" : " tsc --noEmit" ,
10
10
"pods" : " cd ios && bundle install && RCT_NEW_ARCH_ENABLED=0 bundle exec pod install" ,
11
11
"build:android" : " cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { TFilamentRecorder } from './FilamentRecorder'
8
8
import { Choreographer } from '../types/Choreographer'
9
9
import { Dispatcher } from './Dispatcher'
10
10
import { FilamentModule } from './FilamentModule'
11
+ import { Worklets } from 'react-native-worklets-core'
11
12
12
13
interface TestHybridObject {
13
14
int : number
@@ -119,4 +120,9 @@ if (!proxy.hasWorklets) {
119
120
120
121
export const FilamentProxy = proxy
121
122
123
+ // We must make sure that the Worklets API (module) is initialized (as its possible a lazy-loaded CxxTurboModule),
124
+ // to initialize we must only call any property of the module:
125
+ Worklets . defaultContext
126
+
127
+ // Create our custom RNF worklet context:
122
128
export const FilamentWorkletContext = proxy . createWorkletContext ( )
You can’t perform that action at this time.
0 commit comments