import React from 'react';
import { Box } from '@native-base/v3';

export default function () {
  const myRef: any = React.useRef({});
  React.useEffect(() => {
    myRef?.current.setNativeProps({
      borderWidth: 10,
      opacity: 0.5,
      borderRadius: 10,
    });
  }, [myRef]);
  return (
    <Box width="100%" bg="orange.3" p={4} color="white" ref={myRef}>
      This is a Box
    </Box>
  );
}
