import React from 'react'; import { storiesOf } from '@storybook/react-native'; import { action } from '@storybook/addon-actions'; import { text, boolean, select } from '@storybook/addon-knobs'; import Alert, { AlertType } from './Alert'; import Text from './Text'; import { fontStyles } from ' ../../../styles/common'; import EvilIcons from 'react-native-vector-icons/EvilIcons'; const styles = { alertIcon: { fontSize: 20, ...fontStyles.bold, marginRight: 6, }, }; storiesOf('Base / Alert', module) .addDecorator((getStory) => getStory()) .add('Default', () => { const renderIconKnob = boolean('renderIcon', false); return ( : () => null } onPress={action('onPress')} > {text('children', 'This is an Alert component')} ); });