Skip to content

Commit 5b77516

Browse files
authored
Merge pull request #605 from GetStream/fix-android-permission-check
fix android camera permission check
2 parents 1b95a64 + 53eb672 commit 5b77516

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

native-package/src/index.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ registerNativeHandlers({
7373
title: 'Photos Access',
7474
},
7575
);
76-
if (granted !== PermissionsAndroid.PERMISSIONS.GRANTED) {
76+
if (granted !== PermissionsAndroid.RESULTS.GRANTED) {
7777
throw new Error('getPhotos Error');
7878
}
7979
}
@@ -175,22 +175,22 @@ registerNativeHandlers({
175175
activityItemSources:
176176
Platform.OS === 'ios'
177177
? [
178-
{
179-
item: {
180-
default: {
178+
{
179+
item: {
180+
default: {
181+
content: url,
182+
type: 'url',
183+
},
184+
},
185+
linkMetadata: {
186+
icon: url,
187+
},
188+
placeholderItem: {
181189
content: url,
182190
type: 'url',
183191
},
184192
},
185-
linkMetadata: {
186-
icon: url,
187-
},
188-
placeholderItem: {
189-
content: url,
190-
type: 'url',
191-
},
192-
},
193-
]
193+
]
194194
: undefined,
195195
excludedActivityTypes: [],
196196
failOnCancel: false,

0 commit comments

Comments
 (0)