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: #20264

Differential Revision: D9228814

Pulled By: TheSavior

fbshipit-source-id: cad4c15e8070c7ab2023c20045b82f7ab3f994cf
  • Loading branch information
Yury Zholobov authored and kelset committed Aug 13, 2018
1 parent 9db3c51 commit e2ab0b7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions RNTester/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 e2ab0b7

Please sign in to comment.