Skip to content

Commit

Permalink
example cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Jul 19, 2023
1 parent 3a41d92 commit 7ed9f25
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions packages/rn-tester/js/examples/Transform/TransformExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,14 @@ function TransformOriginExample() {
});

return (
<View
style={{
alignItems: 'center',
}}>
<View style={styles.transformOriginWrapper}>
<Animated.View
style={{
transform: [{rotate: spin}],
backgroundColor: 'pink',
width: 100,
height: 100,
transformOrigin: 'top',
}}
style={[
styles.transformOriginView,
{
transform: [{rotate: spin}],
},
]}
/>
</View>
);
Expand Down Expand Up @@ -271,6 +267,15 @@ const styles = StyleSheet.create({
color: 'white',
fontWeight: 'bold',
},
transformOriginWrapper: {
alignItems: 'center',
},
transformOriginView: {
backgroundColor: 'pink',
width: 100,
height: 100,
transformOrigin: 'top',
},
});

exports.title = 'Transforms';
Expand Down

0 comments on commit 7ed9f25

Please sign in to comment.