Skip to content

Commit

Permalink
add Image border*Radius tests
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook/react-native#20264

Differential Revision: D9228814

Pulled By: TheSavior

fbshipit-source-id: cad4c15e8070c7ab2023c20045b82f7ab3f994cf
  • Loading branch information
Yury Zholobov authored and facebook-github-bot committed Aug 8, 2018
1 parent b22297f commit 8ff6c5d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions js/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,30 @@ exports.examples = [
style={[styles.base, styles.leftMargin, {borderRadius: 19}]}
source={fullImage}
/>
<Image
style={[styles.base, styles.leftMargin, {borderTopLeftRadius: 20}]}
source={fullImage}
/>
<Image
style={[styles.base, styles.leftMargin, {
borderWidth: 10,
borderTopLeftRadius: 10,
borderBottomRightRadius: 20,
borderColor: 'green',
}]}
source={fullImage}
/>
<Image
style={[styles.base, styles.leftMargin, {
borderWidth: 5,
borderTopLeftRadius: 10,
borderTopRightRadius: 20,
borderBottomRightRadius: 30,
borderBottomLeftRadius: 40,
borderColor: 'red',
}]}
source={fullImage}
/>
</View>
);
},
Expand Down

0 comments on commit 8ff6c5d

Please sign in to comment.