1.0.2 • Published 8 months ago

with-react-native-ble-manager v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Description

Config plugin for auto-configuring with-react-native-ble-manager projects on Expo.

Usage

Run expo install with-react-native-ble-manager(recommended) or npm i --save with-react-native-ble-manager in project root and add the following to app.json or app.config.json:

"plugins": [
      ["with-react-native-ble-manager",
        {
          "peripheralUsageDescription": "Allow myDevice to check bluetooth peripheral info",
          "alwaysUsageDescription": "Allow myDevice to always use bluetooth info",
          "protocols": [
            "com.myCompany.p1",
            "com.myCompany.p2"
          ]
        }
      ]
    ]

Note

This plugin was originally intended for usage with Expo dev clients. Expo Go is not sufficient because it doesn't include the native modules in react-native-ble-manager.

Contributing

Modify src/index.ts to modify the plugin. Rebuild by running npm run rebuild on Windows. Run npm run rebuild-mac-lin on MacOS and Linux.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago