INNER CODE UNIT · JavaScript

noop

Agontuk/react-native-geolocation-service · js/Geolocation.native.js:6

const noop = () => {};
let subscriptions = [];
let updatesEnabled = false;

const Geolocation = {
  setRNConfiguration: (config) => {}, // eslint-disable-line no-unused-vars

  requestAuthorization: async (authorizationLevel) => {
    if (Platform.OS !== 'ios') {
      return Promise.reject('requestAuthorization is only for iOS');
    }

    if (!authorizationLevel) {
      // eslint-disable-next-line no-console
      console.error('authorizationLevel must be provided');
    }

    return RNFusedLocation.requestAuthorization(authorizationLevel);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…