feat: add image picker options
This commit is contained in:
parent
d96270773b
commit
0d8610a969
1 changed files with 6 additions and 1 deletions
|
|
@ -9,7 +9,12 @@ import { UserPhoto } from '@components/UserPhoto';
|
|||
|
||||
export function Profile() {
|
||||
async function handleUserPhotoSelection() {
|
||||
await ImagePicker.launchImageLibraryAsync();
|
||||
await ImagePicker.launchImageLibraryAsync({
|
||||
mediaTypes: ImagePicker.MediaTypeOptions.Images,
|
||||
quality: 1,
|
||||
aspect: [4, 4],
|
||||
allowsEditing: true,
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue