import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react-native' ; import { Heading } from './Text' ; const TextMeta = { title : 'Text control' , component : Heading , args : { text : 'Hello world!' } , } ; export default TextMeta ; type TextExampleStory = ComponentStory < typeof Heading > ; export const Basic = ( args ) => < Heading { ... args } / > ;