import type { ComponentStory } from '@storybook/react-native'; import { Box } from '../../../ui-components'; import React from 'react'; import Wrapper from '../../Wrapper'; type MyCustomBoxStory = ComponentStory; export const BoxWithRefExample: MyCustomBoxStory = ({ ...props }: any) => { const myRef = React.useRef({}); React.useEffect(() => { const styleObj = { borderWidth: 8, borderRadius: 4, borderColor: '#22D3EE', }; // @ts-ignore myRef.current.setNativeProps({ style: styleObj, }); }, [myRef]); return ( ); };