Closed javadoh closed 5 years ago
-- restart your PC or MAC (for background process) -- uninstall your app on mobile device
folow the steps below at the terminal step by step :
1) react-native unlink react-native-android-location-services-dialog-box
2) npm uninstall react-native-android-location-services-dialog-box
3) npm install react-native-android-location-services-dialog-box --save
4) react-native link react-native-android-location-services-dialog-box
5) react-native run-android
@javadoh above steps worked for you?
Error: [TypeError: undefined is not an object (evaluating '_reactNativeAndroidLocationServicesDialogBox.default.checkLocationServicesIsEnabled')]
Code:
import React, { Component } from 'react; import { StyleSheet, Text, View, Animated, Image, Dimensions, Alert, TouchableOpacity, Platform, BackHandler, DeviceEventEmitter } from "react-native"; import LocationServicesDialogBox from "react-native-android-location-services-dialog-box";
if (Platform.OS === 'android') {