import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react-native' ; import { LocalisedDate } from './Date' ; const date = new Date ( 'February 25, 1983' ) ; const DateMeta = { title : 'Date' , component : LocalisedDate , args : { date : date } , argTypes : { date : { control : { type : 'date' } } } , } ; export default DateMeta ; type DateStory = ComponentStory < typeof LocalisedDate > ; export const Basic = ( args ) => < LocalisedDate { ... args } / > ;