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
+31-6Lines changed: 31 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,26 +92,51 @@ setup_permissions([
92
92
# …
93
93
```
94
94
95
-
3. Then execute `pod install`_(📌 Note that it must be re-executed each time you update this config)_.
95
+
<details>
96
+
<summary><b>🧩 For expo users, see the plugin instructions</b></summary>
96
97
97
-
Tip: If you use Expo and Expo CNG (Continuous Native Generation), you can utilize the built-in Expo Config plugin to perform the work outlined in steps 1 & 2 for you (supported on React Native 0.72+).
98
-
To use the plugin, simply specify the array of the permissions which you want to set up as outlined in step 2 - for example:
98
+
If you use expo you can use the built-in expo config plugin to perform the work outlined in steps 1 and 2:
99
99
100
100
```json
101
101
{
102
-
"name": "my app",
102
+
"name": "My awesome app",
103
103
"plugins": [
104
104
[
105
105
"react-native-permissions",
106
106
{
107
-
// ...
108
-
"iosPermissions": ["Bluetooth"]
107
+
// uncomment wanted permissions
108
+
"iosPermissions": [
109
+
// "AppTrackingTransparency",
110
+
// "Bluetooth"
111
+
// "Calendars",
112
+
// "CalendarsWriteOnly",
113
+
// "Camera",
114
+
// "Contacts",
115
+
// "FaceID",
116
+
// "LocationAccuracy",
117
+
// "LocationAlways",
118
+
// "LocationWhenInUse",
119
+
// "MediaLibrary",
120
+
// "Microphone",
121
+
// "Motion",
122
+
// "Notifications",
123
+
// "PhotoLibrary",
124
+
// "PhotoLibraryAddOnly",
125
+
// "Reminders",
126
+
// "Siri",
127
+
// "SpeechRecognition",
128
+
// "StoreKit"
129
+
]
109
130
}
110
131
]
111
132
]
112
133
}
113
134
```
114
135
136
+
</details>
137
+
138
+
3. Then execute `pod install`_(📌 Note that it must be re-executed each time you update this config)_.
139
+
115
140
4. Finally, update your `Info.plist` with the wanted permissions usage descriptions:
0 commit comments