Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
- export default class App extends React.Component {
- render() {
- return (
- <View style={styles.container}>
- <Text>jazda!</Text>
- <TouchableOpacity
- style={styles.button}
- onPress={this.onButtonPress}
- >
- <Text style={styles.buttonText}>Button!</Text>
- </TouchableOpacity>
- </View>
- );
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: '#fff',
- alignItems: 'center',
- justifyContent: 'center',
- },
- button:{
- backgroundColor:'#ff00ff',
- padding: 30,
- borderRadius:30,
- },
- buttonText:{
- color:'#fff',
- fontSize:20
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement