修复 android 选择图片偶尔报错的问题

This commit is contained in:
mx1700 2019-08-18 21:09:37 +08:00
parent c9ed559380
commit 65e0cfaec7
2 changed files with 3 additions and 1 deletions

View file

@ -50,6 +50,7 @@ public class MainApplication extends NavigationApplication {
new RNFetchBlobPackage(), new RNFetchBlobPackage(),
new RNDeviceInfo(), new RNDeviceInfo(),
new VectorIconsPackage(), new VectorIconsPackage(),
new ImageResizerPackage(),
new AsyncStoragePackage(), new AsyncStoragePackage(),
new PickerPackage(), new PickerPackage(),
new XGPushPackage(), new XGPushPackage(),

View file

@ -258,7 +258,8 @@ export default class WritePage extends Component {
}, 1024 * 1024 * 2, 2560 * 1920, (e, imageUri) => { }, 1024 * 1024 * 2, 2560 * 1920, (e, imageUri) => {
if(e) { if(e) {
Msg.showMsg('操作失败'); console.error(e);
Msg.showMsg('操作失败' + e.toString());
} else { } else {
this.setState({ this.setState({
photoSource: { photoSource: {