Last active
June 16, 2017 15:42
-
-
Save bartolkaruza/42bb9f9d63baaaebb48fc493c8127e1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, {Component} from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; | |
export default class ExampleShowingScaleYIssue extends Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<View | |
style={{transform: [{scaleY: -1}, { perspective: 1 }]}} | |
><Text>Hi</Text></View> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
justifyContent: 'center', | |
alignItems: 'center', | |
backgroundColor: '#F5FCFF', | |
}, | |
}); | |
AppRegistry.registerComponent('ExampleShowingScaleYIssue', () => ExampleShowingScaleYIssue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment