import React, { Component } from 'react' import { StyleSheet, TouchableOpacity, Text, View, TouchableWithoutFeedback, } from 'react-native' class App extends Component { state = { count: 0, count2: 0, count3:0 } onPressup = () => { this.setState({ count: this.state.count + 1, count3:this.state.count3 +1 }) } onPressupdown = () => { this.setState({ count2: this.state.count2 + 1, count3:this.state.count3-1 }) } render() { return ( {this.state.count3} Arttır Azalt Arttırma Butonuna {this.state.count} kez tıkladın. Azaltma Butonuna {this.state.count2} kez tıkladın. ) } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', }, button: { alignItems: 'center', backgroundColor: '#DDDDDD', padding: 15, marginBottom: 10 }, button2: { alignItems: 'center', backgroundColor: '#DDDDDD', padding: 15, marginBottom: 10 }, button3: { alignItems: 'center', backgroundColor: '#A020f0', padding: 50, marginBottom: 10 }, skor:{ fontWeight:'bold', fontSize:30, color:'#FFFFFF' }, texts:{ fontWeight:'bold', fontSize:15, } }) export default App;