This website requires JavaScript.
Explore
Help
Sign In
haskal
/
jiti-meet
Watch
1
Star
0
Fork
You've already forked jiti-meet
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
d3e8856896
jiti-meet
/
react
/
features
/
mobile
/
image-cache
/
index.js
5 lines
95 B
JavaScript
Raw
Normal View
History
Unescape
Escape
[RN] Prefetch remote avatar images 1/2
2017-08-03 17:43:04 +00:00
export
*
from
'./functions'
;
[RN] Fix a strange import of a feature by itself
2017-08-18 19:52:41 +00:00
export
*
from
'./react-native-img-cache'
;
[RN] Prefetch remote avatar images 1/2
2017-08-03 17:43:04 +00:00
[RN] Cache avatars and provide a default in case load fails Avatars are cached to the filesystem and loaded from there when requested again. The cache is cleaned after a conference ends and on application startup (defensive move). In addition, implement a fully local avatar system, which is used as a fallback when loading a remote avatar fails. It can also be forced using a prop. The fully local avatars use a user icon as a mask and apply a background color qhich is picked by hashing the URI passed to the avatar. If no URI is passed a random color is chosen. A grace period of 1 second is also implemented so a default local avatar will be rendered if an Avatar component is mounted but has no URI. If a URI is specified later on, it will be loaded and displayed. In case loading the remote avatar fails, the locally generated one will be used.
2017-07-21 14:41:01 +00:00
import
'./middleware'
;