diff --git a/example/src/Examples/ToggleButtonExample.tsx b/example/src/Examples/ToggleButtonExample.tsx index 5dd274ee9d..29f47aef27 100644 --- a/example/src/Examples/ToggleButtonExample.tsx +++ b/example/src/Examples/ToggleButtonExample.tsx @@ -20,7 +20,7 @@ const ToggleButtonExample = () => { icon="android" value="android" status={status} - onPress={(status) => + onPress={() => setStatus(status === 'checked' ? 'unchecked' : 'checked') } />