You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
The only purpose of this library is to manage the Bluetooth state. Not more, not less.
6
6
7
-
If you need further functionality like connecting and communicating to a device, please look at [react-native-ble-plx](https://github.com/Polidea/react-native-ble-plx).
7
+
If you need further functionality like connecting and communicating with a device, please look at [react-native-ble-plx](https://github.com/Polidea/react-native-ble-plx).
8
8
9
-
## Table Of Content
9
+
## Table Of Contents
10
10
11
11
-[Installation](#installation)
12
12
-[Setup](#setup)
@@ -32,7 +32,7 @@ import { BluetoothStateManager } from "react-native-bluetooth-state-manager";
32
32
33
33
**iOS**
34
34
35
-
You must provide a short description why you need access to bluetooth in your app. Otherwise your app will crash when requesting for bluetooth:
35
+
You must provide a short description of why you need access to Bluetooth in your app. Otherwise, your app will crash when requesting Bluetooth access:
36
36
37
37
```
38
38
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.
`BLUETOOTH_CONNECT` is a runtime permission, that means you must ask the user at runtime for permission. For that, we recommend [react-native-permissions](https://github.com/zoontek/react-native-permissions/tree/master).
53
+
`BLUETOOTH_CONNECT` is a runtime permission, which means you must ask the user at runtime for permission. For that, we recommend [react-native-permissions](https://github.com/zoontek/react-native-permissions/tree/master).
Show a dialog that allows the user to turn on Bluetooth. More here: [Android documentation](https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#ACTION_REQUEST_ENABLE).
201
201
202
-
- This function is **only** on **android** available.
202
+
- This function is **only**available on **Android**.
203
203
204
204
```tsx
205
205
try {
@@ -213,7 +213,7 @@ try {
213
213
214
214
Show a dialog that allows the user to turn off Bluetooth.
215
215
216
-
- This function is **only** on **android** available.
216
+
- This function is **only**available on **Android**.
217
217
218
218
```tsx
219
219
try {
@@ -225,7 +225,7 @@ try {
225
225
226
226
## Why?
227
227
228
-
##### Why not just using[react-native-ble-plx](https://github.com/Polidea/react-native-ble-plx)?
228
+
##### Why not just use[react-native-ble-plx](https://github.com/Polidea/react-native-ble-plx)?
0 commit comments