UNPKG

react-native-ble-nitro

Version:

High-performance React Native BLE library built on Nitro Modules - drop-in replacement for react-native-ble-plx

29 lines (28 loc) 841 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"], * "bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices" * } * ] * ] * } * } * ``` */ declare const plugin: ConfigPlugin<BleNitroPluginProps | void>; export default plugin; export { withBleNitro, withBleNitroAndroid, withBleNitroIOS, type BleNitroPluginProps };