<toggle>
<toggle>
creates a boolean toggle component.
export default function App() { const light = Globals.Light; return <view style={{ flexDirection: 'row', justifyContent: 'center', }}> <toggle onChange={val => light.enabled = val} value={light.enabled} /> Toggle light </view>; };