import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react-native' ; import { Color } from './Color' ; const ColorMeta = { title : 'Color control' , parameters : { notes : '- test' } , argTypes : { color : { control : { type : 'color' } , } , } , } ; export default ColorMeta ; type ColorStory = ComponentStory < typeof Color > ; export const ColorExample = ( args ) => < Color { ... args } / > ; ColorExample . args = { color : 'purple' , } ;