use fetch react native code example Example: react native get location npm i -S react-native-get-location