import React, { Component} from 'react'; import { View, StyleSheet, Button, Text } from 'react-native'; export default class App extends Component { constructor() { super(); this.state = { counter: 0 } } increment = () => { this.setState({ counter: this.state.counter + 1 }); } render() { return ( Számláló: {this.state.counter}