React Native with PHP
Problem Statement Create an App to input two numbers as num1 and num2 and send the data to some PHP file product.php to calculate the product and show that product in a dialog. React Native Code import React from 'react' ; import { TextInput , View , Button } from 'react-native' ; class DemoApp extends React . Component { constructor (props) { super (props); this .state = { num1: 0 ,num2: 0 ,product: 0 }; } calcProduct=()=> { var data = { "num1" : this .state.num1, "num2" : this .state.num2 } fetch( "https://cbse.abes.ac.in/reactnative/product.php" , { method: "POST" , headers: { 'Accept' : 'application/json' , 'Content-Type' : 'application/json' , }, body: JSON .stringify(data) }) .then( function (response){ var data= JSON .parse(response._bodyText); alert( "Product is " +data.product); }) .then( function (d...