rn-customize-avatar
Version:
This package is inspired by whatsapp, instagram custom avatar. You can customize your own avatar and use as a profile in your project
11 lines (8 loc) • 351 B
JavaScript
import {ImageSVG} from '@shopify/react-native-skia';
import * as React from 'react';
import {Dimensions} from 'react-native';
const width = Dimensions.get('window').width;
const SkSvgView = props => {
return <ImageSVG svg={props.svg} width={props?.width} height={props.height} x={(width - props.width) / 2} y={30} />;
};
export default SkSvgView;