📅  最后修改于: 2022-03-11 15:03:33.093000             🧑  作者: Mango
import { Switch } from 'react-native-paper';
const MyComponent = () => {
const [isSwitchOn, setIsSwitchOn] = React.useState(false);
const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn);
return ;
};