Expo UI Toggle ignores value / onValueChange
ExpoLikely fix
Expo SDK 57, @expo/ui
There is no error message for this one, only the symptom in the title.
Cause
The SwiftUI components use SwiftUI's names: isOn / onIsOnChange for Toggle, selection / onSelectionChange for Picker. Only the universal @expo/ui set uses React Native names.
Fix
TSX
<Toggle label="PR attempt" isOn={isPR} onIsOnChange={setIsPR} />More Expo errors
- Dev client red screen: No script URL provided (launcher never appears)No script URL provided
- Bundle fails with Invalid expression encountered after supabase-js updateInvalid expression encountered
- After upgrading to SDK 57, expo-font / expo-image / expo-asset config is missing
- SDK upgrade: export dies with SyntaxError after expo install --fixSyntaxError: ... Unable to determine event arguments for "onModeChange"
- expo-doctor wants TypeScript 6 but tsc reports hundreds of errors