diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-06-24 17:41:45 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-06-24 17:41:45 -0400 |
| commit | b184179a8bff25ad018d02abc31acadc7b3f6a62 (patch) | |
| tree | efd94448ee76860156d7622a61e6eb8785c10f10 /src/components/profile | |
| parent | 981051448fee6197544383e535fea7a72827d41d (diff) | |
| parent | 53bdc94cf0491e348b7d4ad61e51ce1844423773 (diff) | |
Merge branch 'master' into tma948-video-playback
# Conflicts:
# ios/Podfile.lock
# package.json
# src/components/moments/Moment.tsx
# src/routes/main/MainStackNavigator.tsx
# src/screens/moments/TagFriendsScreen.tsx
# src/screens/profile/CaptionScreen.tsx
# yarn.lock
Diffstat (limited to 'src/components/profile')
| -rw-r--r-- | src/components/profile/MomentMoreInfoDrawer.tsx | 8 | ||||
| -rw-r--r-- | src/components/profile/PublicProfile.tsx | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/components/profile/MomentMoreInfoDrawer.tsx b/src/components/profile/MomentMoreInfoDrawer.tsx index c70df875..910aa095 100644 --- a/src/components/profile/MomentMoreInfoDrawer.tsx +++ b/src/components/profile/MomentMoreInfoDrawer.tsx @@ -3,7 +3,6 @@ import React, {useEffect, useState} from 'react'; import { Alert, GestureResponderEvent, - StyleSheet, TextStyle, TouchableOpacity, ViewProps, @@ -174,7 +173,6 @@ const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { return ( <> <TouchableOpacity - style={styles.icon} onPress={() => { setIsOpen(true); }}> @@ -189,10 +187,4 @@ const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { ); }; -const styles = StyleSheet.create({ - icon: { - marginRight: '3%', - }, -}); - export default MomentMoreInfoDrawer; 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], |
