Control SwiftUI and Compose State Synchronously with Worklets in Expo UI (opens in new tab)
React Native developers have long dealt with the friction of bridging JavaScript with native UI threads. Every time you need to update native state, you send a message across the bridge, wait for the round-trip, and hope the user doesn't notice the delay. Expo UI in SDK 56 changes this with worklet integration. You can now control SwiftUI and Compose state directly on the UI thread, with zero JavaScript round-trips. Here's what that looks like: import { Host, TextInput, useNativeState } from ...
Read the original article