Posts

Simple Reactnavigation v6 with previous example php_api

Image
 App.js  ** This code must be always in the App.js file otherwise it will encounter an error Now  here  we are moving from one screen to another that is StudentInsert.js and this code must be included in the StudentSearch.js and navigation handler is just the user-defined function and here in this file we don't have to include any header files related to navigation except react-native common files that we have imported before in our previous examples 

Insert data in php with the help of reactnative and search data

StudentInsert.js (React Native ) import React,{Component} from 'react' ; import {View, Text,TextInput,Button,StyleSheet} from 'react-native' ; export default class StudentInsert extends Component {     constructor (props)     {         super (props);         this .state = {RollNo: '' ,StudentName: '' ,Course: '' };     }     InsertRecord =() =>     {         var RollNo =   this .state.RollNo;         var StudentName = this .state.StudentName;         var Course = this .state.Course;         if (RollNo.length== 0 || StudentName.length== 0 || Course.length == 0 )         {             alert( "Required Field is Missing" );         }         else {                   ...