import React from 'react';
import { Box, Image } from '@native-base/v3';
export default function () {
  const myRef: any = React.useRef({});
  React.useEffect(() => {
    myRef?.current.setNativeProps({ borderWidth: 10, opacity: 0.5 });
  }, [myRef]);
  return (
    <Box size={200}>
      <Image
        ref={myRef}
        source={{
          uri: 'https://nativebase.io/assets/img/front-page-icon.png',
        }}
      />
    </Box>
  );
}
