📌  相关文章
📜  Switch React Native Paper - Javascript 代码示例

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

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

const MyComponent = () => {
  const [isSwitchOn, setIsSwitchOn] = React.useState(false);

  const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn);

  return ;
};