import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react-native' ; import { ActionButton } from './Actions' ; const ActionButtonMeta = { title : 'ActionButton' , component : ActionButton , argTypes : { onPress : { action : 'pressed the button' } , } , args : { text : 'Press me!' , } , } ; export default ActionButtonMeta ; type ActionButtonStory = ComponentStory < typeof ActionButton > ; export const Basic = ( args ) => < ActionButton { ... args } / > ; export const AnotherAction = ( args ) => < ActionButton { ... args } / > ; AnotherAction . argTypes = { onPress : { action : 'pressed a different button' } , } ;