From 8e5b8de41d3c378c86d8741342ddfc6e2525bfe5 Mon Sep 17 00:00:00 2001 From: Husam Salhab <47015061+hsalhab@users.noreply.github.com> Date: Thu, 31 Dec 2020 15:43:35 -0500 Subject: [TMA-482] Add Smart Albums To Image Picker (#156) * add favorites, recent, portraits, and screenshots * add UserLibrary --- src/components/moments/Moment.tsx | 1 + src/screens/onboarding/ProfileOnboarding.tsx | 2 ++ src/screens/profile/EditProfile.tsx | 2 ++ 3 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx index fb6186c8..7010a595 100644 --- a/src/components/moments/Moment.tsx +++ b/src/components/moments/Moment.tsx @@ -34,6 +34,7 @@ const Moment: React.FC = ({ const navigateToImagePicker = () => { ImagePicker.openPicker({ + smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'], width: 580, height: 580, cropping: true, diff --git a/src/screens/onboarding/ProfileOnboarding.tsx b/src/screens/onboarding/ProfileOnboarding.tsx index d51aec95..70550f36 100644 --- a/src/screens/onboarding/ProfileOnboarding.tsx +++ b/src/screens/onboarding/ProfileOnboarding.tsx @@ -147,6 +147,7 @@ const ProfileOnboarding: React.FC = ({ const goToGalleryLargePic = () => { ImagePicker.openPicker({ + smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'], width: 580, height: 580, cropping: true, @@ -166,6 +167,7 @@ const ProfileOnboarding: React.FC = ({ const goToGallerySmallPic = () => { ImagePicker.openPicker({ + smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'], width: 580, height: 580, cropping: true, diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx index 316ad5d4..55e19a51 100644 --- a/src/screens/profile/EditProfile.tsx +++ b/src/screens/profile/EditProfile.tsx @@ -131,6 +131,7 @@ const EditProfile: React.FC = ({route, navigation}) => { const goToGalleryLargePic = () => { ImagePicker.openPicker({ + smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'], width: 580, height: 580, cropping: true, @@ -150,6 +151,7 @@ const EditProfile: React.FC = ({route, navigation}) => { const goToGallerySmallPic = () => { ImagePicker.openPicker({ + smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'], width: 580, height: 580, cropping: true, -- cgit v1.2.3-70-g09d2