Switch
const switchButton = {
name:'switch_button',
component: NANO.SWITCH,
value: true,
props: {
style: {},
color: 'blue'
},
onPress:({getUi, setUi}) => {
const switchButtonObj = getUi("switch_button")
switchButtonObj.value = !switchButtonObj.value
setUi("switch_button", switchButtonObj)
}
};
Switch example
Loading...