UNPKG

react-native-beacon-radar

Version:

Module to scan for iBeacons on iOS and Android, within React Native and Expo managed projects.

13 lines (10 loc) 382 B
const { createRunOncePlugin } = require('@expo/config-plugins'); const withBeaconRadar = require('./expo-plugin/withBeaconRadar'); // A helper function to ensure the plugin is only run once per config const withRunOnceBeaconRadar = createRunOncePlugin( withBeaconRadar, 'react-native-beacon-radar' ); module.exports = (config) => { return withRunOnceBeaconRadar(config); };