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 run any JavaScript code you want in there.
104
104
* You can use variables from "outside" (e.g. state), but those will be immutable/frozen.
105
105
* You can use functions from "outside".
106
-
- Worklets (functions with the `'worklet'` directive) can be called synchronously
107
-
- Normal JS functions (e.g. setState) can be called with `runOnJS`
106
+
- Worklets (functions with the `'worklet'` directive) can be called directly on the separate thread
107
+
- Normal JS functions (e.g. setState) can be called on the React-JS thread with `runOnJS`
108
108
- Native JSI functions ("host functions") can be called synchronously (e.g. functions from [react-native-mmkv](https://github.com/mrousavy/react-native-mmkv#usage))
0 commit comments