Add rectangular border radius example.

This commit is contained in:
Dylan Vann 2018-01-30 20:42:58 -05:00
parent 194619921b
commit e8f6df93b2

View File

@ -15,7 +15,14 @@ const BorderRadiusExample = ({ onPressReload, bust }) => (
</Section>
<SectionFlex onPress={onPressReload}>
<FastImage
style={styles.image}
style={styles.imageSquare}
borderRadius={50}
source={{
uri: IMAGE_URL + bust,
}}
/>
<FastImage
style={styles.imageRectangular}
borderRadius={50}
source={{
uri: IMAGE_URL + bust,
@ -26,13 +33,19 @@ const BorderRadiusExample = ({ onPressReload, bust }) => (
)
const styles = StyleSheet.create({
image: {
imageSquare: {
height: 100,
backgroundColor: '#ddd',
margin: 20,
width: 100,
flex: 0,
},
imageRectangular: {
height: 100,
backgroundColor: '#ddd',
margin: 20,
flex: 1,
},
plus: {
width: 30,
height: 30,