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: website/docs/share-single.mdx
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,8 +142,28 @@ await Share.shareSingle({
142
142
});
143
143
```
144
144
145
-
**Note:** Your app's user must accept "All Photos" when prompted about photo permissions otherwise they may get a "Something went wrong" error.
146
-
145
+
**Warning!**
146
+
To be able to use this feature, your app's user must accept "All Photos" when prompted about photo permissions,
147
+
but first you need to add following permissions to your `Info.plist`:
148
+
```xml
149
+
<key>NSPhotoLibraryUsageDescription</key>
150
+
<string>This app requires access to the photo library to save and share images on Instagram.</string>
151
+
<key>NSPhotoLibraryAddUsageDescription</key>
152
+
<string>This app requires access to the photo library to save and share images on Instagram.</string>
153
+
```
154
+
Or if you're using expo you can add them to `app.json` / `app.config.ts`:
155
+
```typescript
156
+
expo: {
157
+
ios: {
158
+
infoPlist: {
159
+
NSPhotoLibraryUsageDescription:
160
+
'This app requires access to the photo library to save and share images on Instagram',
161
+
NSPhotoLibraryAddUsageDescription:
162
+
'This app requires access to the photo library to save and share images on Instagram.',
163
+
},
164
+
}
165
+
}
166
+
```
147
167
148
168
### Share remote videos to Instagram
149
169
Instagram tries to select **the very last file of the cameraroll** so you have to save videos to the cameraroll in case you want to share them to Instagram.
@@ -175,7 +195,7 @@ By default IG opens New post view with Camera View. There you can find also stor
0 commit comments