Guest User

Untitled

a guest
Jul 22nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. _pickImage = async () => {
  2. let pickerResult = await ImagePicker.launchImageLibraryAsync({
  3. allowsEditing: true,
  4. aspect: [4, 3],
  5. base64: true
  6. });
  7.  
  8. if (!pickerResult.cancelled){
  9. this.setState({image: pickerResult.uri});
  10. await uploadImage(pickerResult.base64);
  11. }
  12. };
Add Comment
Please, Sign In to add comment