Skip to content

Commit

Permalink
Merge pull request #392 from SquareTable/353-image-preview-does-not-c…
Browse files Browse the repository at this point in the history
…ome-up-for-category-post-page

fix: CategoryViewPage now shows image preview
  • Loading branch information
Sebastian-Webster authored Feb 15, 2024
2 parents ff5876a + 72f5b60 commit cea9861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions screens/CategoryCreationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit cea9861

Please sign in to comment.