UNPKG

react-native-ble-nitro

Version:

High-performance React Native BLE library built on Nitro Modules

31 lines (30 loc) 929 B
import { ConfigPlugin } from '@expo/config-plugins'; import withBleNitro, { withBleNitroAndroid, withBleNitroIOS, type BleNitroPluginProps } from './withBleNitro'; /** * Expo Config Plugin for react-native-ble-nitro * * Configures iOS and Android permissions and settings for BLE operations * * @example * ```json * { * "expo": { * "plugins": [ * [ * "react-native-ble-nitro", * { * "isBackgroundEnabled": true, * "modes": ["peripheral", "central"], * "neverForLocation": true, * "androidAdvertisingEnabled": true, * "bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices" * } * ] * ] * } * } * ``` */ declare const plugin: ConfigPlugin<BleNitroPluginProps | void>; export default plugin; export { withBleNitro, withBleNitroAndroid, withBleNitroIOS, type BleNitroPluginProps };