diff --git a/screens/CategoryCreationPage.js b/screens/CategoryCreationPage.js index b44efdc..44db4d7 100644 --- a/screens/CategoryCreationPage.js +++ b/screens/CategoryCreationPage.js @@ -86,15 +86,14 @@ const CategoryCreationPage = ({navigation, route}) => { const pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ - mediaTypes: ImagePicker.MediaTypeOptions.All, + mediaTypes: ImagePicker.MediaTypeOptions.Images, allowsEditing: true, aspect: [1,1], quality: 1, }); if (!result.canceled) { - console.log(result) - navigation.setParams({imageFromRoute: result}) + navigation.setParams({imageFromRoute: result.assets[0]}) } else { console.log("Cancelled") }