feat: add image picker options

This commit is contained in:
Vinicius Souza 2024-10-28 09:44:20 -03:00
parent d96270773b
commit 0d8610a969

View file

@ -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 (