aboutsummaryrefslogtreecommitdiff
path: root/src/screens/moments/TagFriendsScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-09 18:50:15 -0400
committerGitHub <noreply@github.com>2021-07-09 18:50:15 -0400
commit1b2dbdefd7f0f188c3aae9f3fb862a690c123468 (patch)
treee9b88baa252155d3dcad90d6d7b68f195e81be2a /src/screens/moments/TagFriendsScreen.tsx
parent70a9fbcd9aab15be060694fc751cda5f26a81e11 (diff)
parenta0f3288050ec1ea3b9b9fc1320fa54b7f3119bb2 (diff)
Merge pull request #491 from IvanIFChen/tma969-new-caption-screen
[TMA-969] New Caption Screen
Diffstat (limited to 'src/screens/moments/TagFriendsScreen.tsx')
-rw-r--r--src/screens/moments/TagFriendsScreen.tsx16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx
index 6c982936..fc3bccf2 100644
--- a/src/screens/moments/TagFriendsScreen.tsx
+++ b/src/screens/moments/TagFriendsScreen.tsx
@@ -16,11 +16,11 @@ import {MomentTags} from '../../components';
import {TagFriendsFooter} from '../../components/moments';
import {MomentTagType} from '../../types';
import {
- SCREEN_WIDTH,
- SCREEN_HEIGHT,
HeaderHeight,
isIPhoneX,
normalize,
+ SCREEN_HEIGHT,
+ SCREEN_WIDTH,
} from '../../utils';
type TagFriendsScreenRouteProps = RouteProp<
@@ -120,10 +120,10 @@ const TagFriendsScreen: React.FC<TagFriendsScreenProps> = ({route}) => {
return (
<View style={styles.contentContainer}>
<View
- style={{
- position: 'absolute',
- paddingTop: SCREEN_HEIGHT / 2 - imageHeight / 2,
- }}>
+ style={[
+ styles.innerContainer,
+ {paddingTop: SCREEN_HEIGHT / 2 - imageHeight / 2},
+ ]}>
<TouchableWithoutFeedback
onPress={() =>
navigation.navigate('TagSelectionScreen', {
@@ -206,6 +206,7 @@ const TagFriendsScreen: React.FC<TagFriendsScreenProps> = ({route}) => {
style={[
styles.shareButtonTitle,
// makes the Done buttomn invisible if there are no tags
+ // eslint-disable-next-line react-native/no-inline-styles
{opacity: tags.length !== 0 ? 1 : 0},
]}>
Done
@@ -295,6 +296,9 @@ const styles = StyleSheet.create({
bottom: 0,
height: SCREEN_HEIGHT * 0.15,
},
+ innerContainer: {
+ position: 'absolute',
+ },
});
export default TagFriendsScreen;