unioil-loyalty-rn-app/app/components/api/mobile.js

13 lines
318 B
JavaScript

import * as React from 'react';
import EP from './endpoints';
export default function ValidateMobile(mobile) {
return fetch(EP.validate_mobile + "/" + mobile)
.then((response) => response.json())
.then((json) => {
return json
})
.catch((error) => {
return error
});
}