Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import React from 'react';
  2. import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
  3.  
  4. export default class App extends React.Component {
  5. render() {
  6. return (
  7. <View style={styles.container}>
  8. <Text>jazda!</Text>
  9. <TouchableOpacity
  10. style={styles.button}
  11. onPress={this.onButtonPress}
  12. >
  13. <Text style={styles.buttonText}>Button!</Text>
  14. </TouchableOpacity>
  15. </View>
  16. );
  17. }
  18. }
  19.  
  20. const styles = StyleSheet.create({
  21. container: {
  22. flex: 1,
  23. backgroundColor: '#fff',
  24. alignItems: 'center',
  25. justifyContent: 'center',
  26. },
  27. button:{
  28. backgroundColor:'#ff00ff',
  29. padding: 30,
  30. borderRadius:30,
  31. },
  32. buttonText:{
  33. color:'#fff',
  34. fontSize:20
  35. }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement