瀏覽代碼

Update README.md

Yonah Forst 8 年之前
父節點
當前提交
b8dd7d8bf1
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      README.md

+ 3
- 3
README.md 查看文件

@@ -85,15 +85,15 @@ _Permission types_ - `location`, `camera`, `microphone`, `photo`, `contacts`, `e
85 85
 | `openSettings` | *none* | - Switches the user to the settings page of your app (iOS 8.0 and later)  |
86 86
 | `canOpenSettings` | *none* | - Returns a boolean indicating if the device supports switching to the settings page |
87 87
 
88
-Note: Permission type `bluetooth` represents the status of the `CBPeripheralManager` . Note: Don't use this if you're only using `CBCentralManager`
88
+Note: Permission type `bluetooth` represents the status of the `CBPeripheralManager`. Don't use this if you're only using `CBCentralManager`
89 89
 
90
-#####Special cases
90
+###Special cases
91 91
 
92 92
 `requestPermission` also accepts a second parameter for types `location` and `notification`.
93 93
 - `location`: the second parameter is a string, either `always` or `whenInUse`(default).
94 94
 - `notification`: the second parameter is an array with the desired alert types. Any combination of `alert`, `badge` and `sound` (default requests all three)
95
-*_example_*
96 95
 ```js
96
+///example
97 97
     Permissions.requestPermission('location', 'always')
98 98
       .then(response => {
99 99
         this.setState({ locationPermission: response })