From bc1f377dfe4033f2fad28b7852dc09a72e0bd43e Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Mon, 29 Mar 2021 13:07:51 -0700 Subject: Logout remaining --- src/screens/profile/AccountType.tsx | 38 ++++++++++++++++------------------ src/screens/profile/PrivacyScreen.tsx | 5 ++--- src/screens/profile/SettingsScreen.tsx | 9 ++++---- 3 files changed, 25 insertions(+), 27 deletions(-) (limited to 'src') diff --git a/src/screens/profile/AccountType.tsx b/src/screens/profile/AccountType.tsx index 8c700cef..60ed0668 100644 --- a/src/screens/profile/AccountType.tsx +++ b/src/screens/profile/AccountType.tsx @@ -51,25 +51,23 @@ const AccountType: React.FC = () => { - + {getAccountText()} - - + {!isLoading && ( + - {!isLoading && ( - - )} - + )} @@ -93,6 +91,7 @@ const AccountType: React.FC = () => { const styles = StyleSheet.create({ container: {marginHorizontal: '8%', marginTop: '20%'}, title: { + alignSelf: 'center', fontSize: normalize(18), fontWeight: '600', lineHeight: normalize(17.9), @@ -100,9 +99,8 @@ const styles = StyleSheet.create({ }, switchContainerStyle: { flexDirection: 'row', - alignItems: 'center', - position: 'absolute', - right: 0, + alignContent: 'center', + justifyContent: 'space-between', }, detailContainerStyle: {marginTop: '40%'}, detailTitleStyle: { diff --git a/src/screens/profile/PrivacyScreen.tsx b/src/screens/profile/PrivacyScreen.tsx index d91c7841..17872e24 100644 --- a/src/screens/profile/PrivacyScreen.tsx +++ b/src/screens/profile/PrivacyScreen.tsx @@ -1,4 +1,3 @@ -import {useNavigation} from '@react-navigation/core'; import React from 'react'; import { SectionList, @@ -12,7 +11,7 @@ import {RootState} from 'src/store/rootReducer'; import {Background} from '../../components'; import {NO_PROFILE} from '../../store/initialStates'; import {BackgroundGradientType} from '../../types'; -import {normalize} from '../../utils/layouts'; +import {SCREEN_HEIGHT} from '../../utils/layouts'; import SettingsCell from './SettingsCell'; import {SETTINGS_DATA} from '../../constants/constants'; @@ -44,7 +43,7 @@ const PrivacyScreen: React.FC = () => { }; const styles = StyleSheet.create({ - container: {marginHorizontal: '8%', marginTop: '8%'}, + container: {height: SCREEN_HEIGHT, marginHorizontal: '8%', marginTop: '8%'}, }); export default PrivacyScreen; diff --git a/src/screens/profile/SettingsScreen.tsx b/src/screens/profile/SettingsScreen.tsx index cb049a96..88962f71 100644 --- a/src/screens/profile/SettingsScreen.tsx +++ b/src/screens/profile/SettingsScreen.tsx @@ -1,20 +1,20 @@ import React from 'react'; import { + SafeAreaView, SectionList, StatusBar, StyleSheet, Text, TouchableOpacity, - SafeAreaView, View, } from 'react-native'; import {useSelector} from 'react-redux'; import {RootState} from 'src/store/rootReducer'; import {Background} from '../../components'; +import {SETTINGS_DATA} from '../../constants/constants'; import {BackgroundGradientType} from '../../types'; -import {normalize} from '../../utils/layouts'; +import {normalize, SCREEN_HEIGHT} from '../../utils/layouts'; import SettingsCell from './SettingsCell'; -import {SETTINGS_DATA} from '../../constants/constants'; const SettingsScreen: React.FC = () => { const {suggested_people_linked} = useSelector( @@ -28,6 +28,7 @@ const SettingsScreen: React.FC = () => { item.title + index} renderItem={({item: {title, preimage, postimage}}) => ( @@ -56,7 +57,7 @@ const SettingsScreen: React.FC = () => { }; const styles = StyleSheet.create({ - container: {marginHorizontal: '8%', marginTop: '8%'}, + container: {height: SCREEN_HEIGHT, marginHorizontal: '8%', marginTop: '8%'}, headerContainerStyles: {marginTop: '14%'}, headerTextStyles: { fontSize: normalize(18), -- cgit v1.2.3-70-g09d2