Skip to content

Image

Example usage of a custom image with utility props.

<Center marginVertical={12}>
<MyCustomImage aspectRatio={1} />
</Box>

import { Image } from 'react-native';
import { createComponent } from 'react-native-small-ui';
const MyCustomImage = createComponent(Image, {
height: 128,
width: 128,
}, {
source: require('./assets/custom-image.png')
})