📜  用文本反应本机切换按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:02.211000             🧑  作者: Mango

代码示例1
import { Switch } from 'react-native-switch';

 console.log(val)}
    disabled={false}
    activeText={'On'}
    inActiveText={'Off'}
    backgroundActive={'green'}
    backgroundInactive={'gray'}
    circleActiveColor={'#30a566'}
    circleInActiveColor={'#000000'}
/>