-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
ImagePicker.showImagePicker(IMGPICKER_CONFIG, (response) => {
if (!response.error) {
source = {
uri: consts.ios ? response.uri.replace('file://', '') : response.uri,
isStatic: true,
};
Qiniu.Rpc.uploadFile(source.uri, imageToken.token, { key: 'avatar' }, (res) => {
console.log(res);
});
}
this.setState({
avatarImg: source,
});
});
Metadata
Metadata
Assignees
Labels
No labels