You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* You can use variables from "outside" (e.g. state), but those will be immutable/frozen.
107
107
* You can use functions from "outside".
108
108
- Worklets (functions with the `'worklet'` directive) can be called directly on the separate thread
109
-
- Normal JS functions (e.g. setState) can be called on the React-JS thread with `runOnJS`
110
109
- Native JSI functions ("host functions", aka functions that print `function f() { [native code] }` when you call `.toString()` on them) can be called synchronously (e.g. functions from [react-native-mmkv](https://github.com/mrousavy/react-native-mmkv#usage))
110
+
- Normal JS functions (e.g. setState) can be called on the React-JS thread with [`runOnJS`](https://docs.swmansion.com/react-native-reanimated/docs/api/runOnJS)
0 commit comments