Now that we have both a Fragment and an Activity there are lifecycle methods that overlap. If a Fragment requests permission by calling requestPermissions then the result handler will be called on itself. React Native's permissions module, however, calls ActivityCompat.requestPermissions on the Activity, thus we need to handle the results at the Activity level and not at the Fragment level.master
|
|
||
| 151 |
|
151 |
|
| 152 |
|
152 |
|
| 153 |
|
153 |
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
| 154 |
|
159 |
|
| 155 |
|
160 |
|
| 156 |
|
161 |
|
|
|
||
| 81 |
|
81 |
|
| 82 |
|
82 |
|
| 83 |
|
83 |
|
| 84 |
|
|
|
| 85 |
|
|
|
| 86 |
|
|
|
| 87 |
|
|
|
| 88 |
|
|
|
| 89 |
|
|
|
| 90 |
|
|
|
| 91 |
|
|
|
| 92 |
|
|
|
| 93 |
|
84 |
|
| 94 |
|
85 |
|
| 95 |
|
86 |
|