mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-24 04:08:21 +00:00
Handle assets from asset library.
This commit is contained in:
parent
69d6c250c9
commit
466f43f4ae
2
index.js
2
index.js
@ -25,6 +25,8 @@ const useLocalImage = source => {
|
||||
if (source.uri.startsWith('content://')) return true
|
||||
// Smart album.
|
||||
if (source.uri.startsWith('photos://')) return true
|
||||
// From asset library / camera roll.
|
||||
if (source.uri.startsWith('assets-library://')) return true
|
||||
// We have a remote source.
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user