import React, { useState } from 'react'; import { StyleSheet } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { Radio, RadioGroup, } from '@aws-amplify/ui-react-native/dist/primitives'; const ControlledRadioGroup = ({ ...props }: any) => { const [value, setValue] = useState(props.value); const onChange = (nextValue: string) => { setValue(nextValue); }; return ( ); }; const UncontrolledRadioGroup = ({ ...props }: any) => { const [selectedValue, setSelectedValue] = useState('Empty :('); return ( ); }; const CustomRadioGroup = ({ ...props }: any) => { const [value, setValue] = useState('green'); const onChange = (nextValue: string) => { setValue(nextValue); }; return ( ); }; storiesOf('RadioGroup', module) .add('default', () => ) .add('controlled', () => ( )) .add('uncontrolled', () => ) .add('direction', () => ( <> )) .add('disabled', () => ( )) .add('labelStyle', () => ( )) .add('size', () => ( )) .add('Radio overrides', () => ); const styles = StyleSheet.create({ redText: { color: 'red', }, radioDotStyle: { backgroundColor: 'green', }, });