David Ewins
Error library

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

Search all errors