aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHusam Salhab <47015061+hsalhab@users.noreply.github.com>2020-12-31 15:43:35 -0500
committerGitHub <noreply@github.com>2020-12-31 15:43:35 -0500
commit8e5b8de41d3c378c86d8741342ddfc6e2525bfe5 (patch)
treefaee4b0aac8388f87227640ffc5dc49643011c76 /src
parent38661e00281363b0f4ad32f0b29d739e1ca09164 (diff)
[TMA-482] Add Smart Albums To Image Picker (#156)
* add favorites, recent, portraits, and screenshots * add UserLibrary
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/Moment.tsx1
-rw-r--r--src/screens/onboarding/ProfileOnboarding.tsx2
-rw-r--r--src/screens/profile/EditProfile.tsx2
3 files changed, 5 insertions, 0 deletions
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<MomentProps> = ({
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<ProfileOnboardingProps> = ({
const goToGalleryLargePic = () => {
ImagePicker.openPicker({
+ smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'],
width: 580,
height: 580,
cropping: true,
@@ -166,6 +167,7 @@ const ProfileOnboarding: React.FC<ProfileOnboardingProps> = ({
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<EditProfileProps> = ({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<EditProfileProps> = ({route, navigation}) => {
const goToGallerySmallPic = () => {
ImagePicker.openPicker({
+ smartAlbums: ['Favorites', 'RecentlyAdded', 'SelfPortraits', 'Screenshots', 'UserLibrary'],
width: 580,
height: 580,
cropping: true,