import { StyleSheet, Text, View, ScrollView, FlatList } from 'react-native' import React, { useState } from 'react' import { horizontalScale, moderateScale, verticalScale } from '../../constants/metrics'; import colors from '../../constants/colors'; import fonts from '../../constants/fonts'; import NewscoutTitleHeader from '../../components/molecules/Header/NewscoutTitleHeader'; import SettingsButton from '../../components/atoms/Buttons/SettingsButton'; import EditButton from '../../components/atoms/Buttons/EditButton'; import ProfileImageCard from '../../components/molecules/Cards/ProfileImageCard'; import { ToggleButton } from 'react-native-paper'; import HorizontalNewsCardVariant from '../../components/molecules/Cards/HorizontalNewsCardVariant'; const profileTabs = ['Recently Read', 'Others']; const ProfilePage = props => { const { navigation, route } = props const [categoryValue, setCategoryValue] = useState( profileTabs[0].toLowerCase(), ); const styles = StyleSheet.create({ profileContainer: { backgroundColor: colors().dominant, }, metricsCountContainer: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-evenly', paddingVertical: verticalScale(20), paddingHorizontal: horizontalScale(16), }, metricsCard: {}, metricsTitle: { color: colors().primaryColor, fontFamily: fonts.type.medium, fontSize: 16, }, metricsCount: { color: colors().recessive, fontFamily: fonts.type.semibold, fontSize: moderateScale(16), textAlign: 'center', }, verticalLine: { height: '100%', width: 2, backgroundColor: colors().grayShade_400, }, underlinePillContainer: { paddingVertical: verticalScale(8), flexDirection: 'row', alignItems: 'space-between', justifyContent: 'space-around', paddingHorizontal: horizontalScale(16), }, selectedPillText: { fontFamily: fonts.type.semibold, fontSize: moderateScale(12), color: colors().recessive, borderBottomWidth: verticalScale(4), borderBottomColor: colors().primaryColor, borderRadius: 0, }, pillText: { fontFamily: fonts.type.semibold, fontSize: moderateScale(12), color: colors().grayShade_100, }, underlinePill: { width: 'auto', }, profileCardContainer: { paddingHorizontal: horizontalScale(16), paddingBottom: verticalScale(16) }, }); return ( navigation.goBack()}> navigation.navigate('SettingsPage')} /> navigation.navigate('Profile', { screen: 'EditProfile' }) } /> navigation.navigate('Profile', { screen: 'EditProfile' })} /> Semina Gurung The reason behind their disappointment is that iPhone users have been.. 158 Bookmarks 158 Followers 158 Following {/* */} setCategoryValue(value)}> {profileTabs.map(tab => { let valueId = tab.toLowerCase(); return ( ( {tab} )} style={[styles.underlinePill]} value={valueId} /> ); })} {/* */} ( )} // ListFooterComponent={() => } ListHeaderComponent={() => ( )} data={[{}, {}, {}]} renderItem={item => } keyExtractor={item => item.index} /> ) } export default ProfilePage const styles = StyleSheet.create({})