Handle photos from smart albums.
This commit is contained in:
parent
38192fa220
commit
243b33db76
3
index.js
3
index.js
|
@ -21,7 +21,10 @@ const useLocalImage = source => {
|
|||
if (!source.uri) return true
|
||||
// Is a local Android image.
|
||||
if (source.uri.startsWith('file://')) return true
|
||||
// Content URI.
|
||||
if (source.uri.startsWith('content://')) return true
|
||||
// Smart album.
|
||||
if (source.uri.startsWith('photos://')) return true
|
||||
// We have a remote source.
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue