mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-24 04:08:21 +00:00
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…
x
Reference in New Issue
Block a user