react-native-fetch-with-timeout fetch with timeout ex: defalut return json let promise=ajax({ url:xxx, method: 'POST', data: { id:xxxx, xxx:xxx } }); promise.then(()=>{ }).catch(()=>{ })