mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 19:58:15 +00:00
Add rectangular border radius example.
This commit is contained in:
parent
194619921b
commit
e8f6df93b2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user