From 8d243eef5db576c053d521d082feb87a1a834558 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 18 Mar 2021 15:23:18 -0700 Subject: cleaned lint erros --- src/components/friends/InviteFriendTile.tsx | 30 ++++++++++++--------------- src/components/profile/Friends.tsx | 5 +++-- src/screens/profile/InviteFriendsScreen.tsx | 32 ++++++++++++++++++----------- 3 files changed, 36 insertions(+), 31 deletions(-) (limited to 'src') diff --git a/src/components/friends/InviteFriendTile.tsx b/src/components/friends/InviteFriendTile.tsx index f56d3514..9613b1ac 100644 --- a/src/components/friends/InviteFriendTile.tsx +++ b/src/components/friends/InviteFriendTile.tsx @@ -6,8 +6,6 @@ import { TouchableWithoutFeedback, View, } from 'react-native'; -import {useSelector} from 'react-redux'; -import {RootState} from '../../store/rootReducer'; import {TAGG_LIGHT_BLUE} from '../../constants'; import {inviteFriendService} from '../../services'; import {normalize} from '../../utils'; @@ -48,24 +46,11 @@ const InviteFriendTile: React.FC = ({item}) => { return ( - + {item.firstName + ' ' + item.lastName} - - {formatedPhoneNumber} - + {formatedPhoneNumber} = ({result, screenType, userId}) => { Add Friends navigation.navigate('InviteFriendsScreen', { screenType: ScreenType.Profile, @@ -176,6 +176,7 @@ const styles = StyleSheet.create({ fontWeight: '600', lineHeight: normalize(14.32), }, + findFriendsButton: {flexDirection: 'row'}, friendsSubheaderText: { alignSelf: 'center', width: SCREEN_WIDTH * 0.85, diff --git a/src/screens/profile/InviteFriendsScreen.tsx b/src/screens/profile/InviteFriendsScreen.tsx index 53215d8a..c98b90f8 100644 --- a/src/screens/profile/InviteFriendsScreen.tsx +++ b/src/screens/profile/InviteFriendsScreen.tsx @@ -13,7 +13,7 @@ import { TouchableWithoutFeedback, } from 'react-native'; import {useDispatch, useStore} from 'react-redux'; -import {ContactType, ProfilePreviewType, ScreenType} from '../../types'; +import {ProfilePreviewType, ScreenType} from '../../types'; import { extractContacts, handleAddFriend, @@ -22,7 +22,7 @@ import { SCREEN_HEIGHT, SCREEN_WIDTH, } from '../../utils'; -import {checkPermission, getAll} from 'react-native-contacts'; +import {checkPermission} from 'react-native-contacts'; import {usersFromContactsService} from '../../services/UserFriendsService'; import {ProfilePreview, TabsGradient} from '../../components'; import Animated from 'react-native-reanimated'; @@ -158,7 +158,7 @@ const InviteFriendsScreen: React.FC = ({ const NonUsersFromContacts = () => ( <> item.phoneNumber} @@ -168,19 +168,13 @@ const InviteFriendsScreen: React.FC = ({ ); return ( - + - - + + Sharing is caring, invite friends, and create moments together! @@ -229,11 +223,25 @@ const InviteFriendsScreen: React.FC = ({ }; const styles = StyleSheet.create({ + mainContainer: {backgroundColor: 'white', height: SCREEN_HEIGHT}, body: { paddingTop: HeaderHeight * 1.3, height: SCREEN_HEIGHT * 0.8, backgroundColor: '#fff', }, + headerContainer: { + width: 319, + height: 42, + alignSelf: 'center', + marginBottom: '2%', + }, + headerText: { + alignSelf: 'center', + width: SCREEN_WIDTH * 0.85, + marginBottom: '5%', + textAlign: 'center', + }, + nonUsersFlatListContainer: {paddingBottom: 130}, subheader: { alignSelf: 'center', width: SCREEN_WIDTH * 0.85, -- cgit v1.2.3-70-g09d2