use application context to avoid deallocated view error when split screen on android

This commit is contained in:
Wes Zheng 2017-10-20 10:40:06 -07:00
parent f2d96719ac
commit 8859f63041
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class FastImageViewManager extends SimpleViewManager<ImageViewWithUrl> implement
eventEmitter.receiveEvent(viewId, REACT_ON_LOAD_START_EVENT, new WritableNativeMap());
Glide
.with(view.getContext())
.with(view.getContext().getApplicationContext())
.load(glideUrl)
.priority(priority)
.placeholder(TRANSPARENT_DRAWABLE)