[FIX] In some cases, share extension doesn't load images (#1649)
This commit is contained in:
parent
98f12bc058
commit
75c7f76c1f
|
@ -114,7 +114,7 @@ class ShareListView extends React.Component {
|
||||||
this.willBlurListener = props.navigation.addListener('willBlur', () => BackHandler.addEventListener('hardwareBackPress', this.handleBackPress));
|
this.willBlurListener = props.navigation.addListener('willBlur', () => BackHandler.addEventListener('hardwareBackPress', this.handleBackPress));
|
||||||
}
|
}
|
||||||
|
|
||||||
async componentDidMount() {
|
componentDidMount() {
|
||||||
const { navigation, server } = this.props;
|
const { navigation, server } = this.props;
|
||||||
navigation.setParams({
|
navigation.setParams({
|
||||||
initSearch: this.initSearch,
|
initSearch: this.initSearch,
|
||||||
|
@ -122,6 +122,7 @@ class ShareListView extends React.Component {
|
||||||
search: this.search
|
search: this.search
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTimeout(async() => {
|
||||||
try {
|
try {
|
||||||
const { value, type } = await ShareExtension.data();
|
const { value, type } = await ShareExtension.data();
|
||||||
let fileInfo = null;
|
let fileInfo = null;
|
||||||
|
@ -146,6 +147,7 @@ class ShareListView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getSubscriptions(server);
|
this.getSubscriptions(server);
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
|
Loading…
Reference in New Issue