Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _pickImage = async () => {
- let pickerResult = await ImagePicker.launchImageLibraryAsync({
- allowsEditing: true,
- aspect: [4, 3],
- base64: true
- });
- if (!pickerResult.cancelled){
- this.setState({image: pickerResult.uri});
- await uploadImage(pickerResult.base64);
- }
- };
Add Comment
Please, Sign In to add comment