Skip to content

Commit

Permalink
Add BackfaceVisibility to RNTester
Browse files Browse the repository at this point in the history
  • Loading branch information
charpeni committed May 18, 2018
1 parent 54709a4 commit 2d8fae1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions RNTester/js/ViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,19 @@ exports.examples = [
render: function() {
return <ZIndexExample />;
},
}, {
title: 'BackfaceVisibility',
render: function() {
return (
<View style={{ justifyContent: 'center', alignItems: 'center' }}>
<View style={{ height: 200, width: 200, justifyContent: 'center', alignItems: 'center', backgroundColor: 'blue', backfaceVisibility: 'hidden' }}>
<Text>Front</Text>
</View>
<View style={{ height: 200, width: 200, justifyContent: 'center', alignItems: 'center', backgroundColor: 'red', backfaceVisibility: 'hidden', transform: [ { rotateY: '180deg' }], position: 'absolute', top: 0 }}>
<Text>Back</Text>
</View>
</View>
);
},
},
];

0 comments on commit 2d8fae1

Please sign in to comment.