react native with expo addition of two numbers using 3 textinput 2 style class and function
commands expo init myadd2num cd myadd2num npm start press a for running on android emulator expo go ------------------------------------------------ import { StatusBar } from 'expo-status-bar' ; import { StyleSheet , Text , View , Button , TextInput } from 'react-native' ; //import { TextInput } from 'react-native-web'; import { Component } from 'react/cjs/react.production.min' ; export default class App extends Component { constructor ( props ){ super ( props ); this . state = { number1 : 0 , number2 : 0 , result : 0 } } sum =() => { var x = parseInt ( this . state . number1 ); var y = parseInt ( this . state . number2 ); var z = x + y ; // this.setState({result : parseInt(this.state.number1) + parseInt(this.state.number2) }); th...