Send HTTP request
let map = {method: ' post ' headers: {token: ' ' content-type ': ' Application/json ' , map). Then (result) => {Result.json (). Then ((obj) => {Console.log (obj); } ). catch => {Console.log (Error ); } ) } ). catch => {Console.log (error); } );
Date Selector
Let Option={date:new date (), MinDate:new Date (2012,1,28), MaxDate:new date (2020,1,28) };D atepickerandroid.open (option). Then ( = = {if(result.action=== datepickerandroid.dismissedaction) { console.log (' not selected '); } Else { console.log (result); } } ). Catch ( = = { console.log (error); } );
Time selection
Let Option={hour:13,minute:11}; Timepickerandroid.open (option). Then ( = = {if(result.action=== timepickerandroid.dismissedaction) { console.log (' not selected '); } Else { console.log (result); } } ). Catch ( = = { console.log (error); } );
RN sending an HTTP request example