Skip to content

Instantly share code, notes, and snippets.

@bartolkaruza
Last active June 16, 2017 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartolkaruza/42bb9f9d63baaaebb48fc493c8127e1a to your computer and use it in GitHub Desktop.
Save bartolkaruza/42bb9f9d63baaaebb48fc493c8127e1a to your computer and use it in GitHub Desktop.
/**
* 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