import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react-native' ; import { Switch } from './Boolean' ; const BooleanExample = { title : 'Boolean Control' , component : Switch , } ; export default BooleanExample ; type BooleanStory = ComponentStory < typeof Switch > ; export const Basic = ( args ) => < Switch { ... args } / > ; Basic . args = { on : true , } ;