瀏覽代碼

Update README.md

Yonah Forst 8 年之前
父節點
當前提交
b8dd7d8bf1
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      README.md

+ 3
- 3
README.md 查看文件

85
 | `openSettings` | *none* | - Switches the user to the settings page of your app (iOS 8.0 and later)  |
85
 | `openSettings` | *none* | - Switches the user to the settings page of your app (iOS 8.0 and later)  |
86
 | `canOpenSettings` | *none* | - Returns a boolean indicating if the device supports switching to the settings page |
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
 `requestPermission` also accepts a second parameter for types `location` and `notification`.
92
 `requestPermission` also accepts a second parameter for types `location` and `notification`.
93
 - `location`: the second parameter is a string, either `always` or `whenInUse`(default).
93
 - `location`: the second parameter is a string, either `always` or `whenInUse`(default).
94
 - `notification`: the second parameter is an array with the desired alert types. Any combination of `alert`, `badge` and `sound` (default requests all three)
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
 ```js
95
 ```js
96
+///example
97
     Permissions.requestPermission('location', 'always')
97
     Permissions.requestPermission('location', 'always')
98
       .then(response => {
98
       .then(response => {
99
         this.setState({ locationPermission: response })
99
         this.setState({ locationPermission: response })