aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/PublicProfile.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-06-18 10:51:38 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-06-18 10:51:38 -0700
commit5449a11f4c404e505ba4369bbdbefd73eeda0be3 (patch)
tree231045489b5bb326eb8a34a5556d016654433e2b /src/components/profile/PublicProfile.tsx
parentea562eff372995cf8f2cfc389d979452a3885c52 (diff)
Add image manipulation for cropping
Diffstat (limited to 'src/components/profile/PublicProfile.tsx')
-rw-r--r--src/components/profile/PublicProfile.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/profile/PublicProfile.tsx b/src/components/profile/PublicProfile.tsx
index 8a80c56f..6b991d7c 100644
--- a/src/components/profile/PublicProfile.tsx
+++ b/src/components/profile/PublicProfile.tsx
@@ -87,7 +87,9 @@ const PublicProfile: React.FC<ContentProps> = ({
scrollViewRef.current
) {
setScrollEnabled(false);
- scrollViewRef.current.scrollTo({y: 0});
+ if (scrollViewRef && scrollViewRef.current) {
+ scrollViewRef.current.scrollTo({y: 0});
+ }
navigation.navigate('MomentUploadPrompt', {
screenType,
momentCategory: momentCategories[0],