Skip to content

Commit

Permalink
style(singleAddressHome): android layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hz002 committed Nov 21, 2024
1 parent bf5b054 commit 2a570d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 2 additions & 0 deletions apps/mobile/src/constant/theme-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ const themeColorsNext2024 = {
'neutral-line': 'rgba(224, 229, 236, 1)',
'neutral-title-1': 'rgba(25, 41, 69, 1)',
'neutral-title-2': 'rgba(255, 255, 255, 1)',
// TODO: corresponding dark color
'netural-card-2': 'rgba(242, 244, 247, 1)',
'neutral-body': 'rgba(62, 73, 94, 1)',
'neutral-foot': 'rgba(106, 117, 135, 1)',
'neutral-secondary': 'rgba(154, 156, 169, 1)',
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/src/screens/SingleAddreesHome/AssetContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const AssetContainer: React.FC<Props> = ({
containerStyle={styles.container}
renderTabBar={renderTabBar}
headerContainerStyle={styles.headerContainer}
minHeaderHeight={10}
onTabChange={tab => {
setActiveTab(tab.tabName);
}}
Expand All @@ -105,6 +106,7 @@ export const AssetContainer: React.FC<Props> = ({

const getStyles = createGetStyles2024(ctx => ({
container: {
marginTop: -10,
backgroundColor: ctx.colors2024['neutral-bg-1'],
width: '100%',
paddingBottom: 18,
Expand Down
12 changes: 3 additions & 9 deletions apps/mobile/src/screens/SingleAddreesHome/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { useCallback } from 'react';
import { SafeAreaView } from 'react-native';
import RootScreenContainer from '@/components/ScreenContainer/RootScreenContainer';

import HeaderArea from './HeaderArea';
import { StackActions, useFocusEffect } from '@react-navigation/native';
import { AssetContainer } from './AssetContainer';
Expand All @@ -16,6 +14,7 @@ import { ScreenSpecificStatusBar } from '@/components/FocusAwareStatusBar';
import { createGetStyles2024 } from '@/utils/styles';
import { useTheme2024 } from '@/hooks/theme';
import { useSafeSetNavigationOptions } from '@/components/AppStatusBar';
import NormalScreenContainer from '@/components/ScreenContainer/NormalScreenContainer';

function HomeScreen(): JSX.Element {
const { navigation, setNavigationOptions } = useSafeSetNavigationOptions();
Expand Down Expand Up @@ -53,19 +52,15 @@ function HomeScreen(): JSX.Element {
);

return (
<RootScreenContainer
fitStatuBar
top={-56}
hideBottomBar
style={styles.rootScreenContainer}>
<NormalScreenContainer style={styles.rootScreenContainer}>
{/* <ScreenSpecificStatusBar screenName={RootNames.Home} /> */}
<SafeAreaView style={styles.safeView}>
<AssetContainer
renderHeader={() => <HomeTopArea />}
onRefresh={triggerUpdate}
/>
</SafeAreaView>
</RootScreenContainer>
</NormalScreenContainer>
);
}

Expand All @@ -77,7 +72,6 @@ const getStyles = createGetStyles2024(ctx => ({
},
safeView: {
flex: 1,
paddingHorizontal: 16,
width: '100%',
overflow: 'hidden',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React, { useMemo } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import React from 'react';
import { Text, View } from 'react-native';

import { RcArrowRight2CC } from '@/assets/icons/common';
import { AppColorsVariants } from '@/constant/theme';
import { useTheme2024, useThemeColors } from '@/hooks/theme';
import { useTheme2024 } from '@/hooks/theme';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { createGetStyles2024 } from '@/utils/styles';

Expand Down Expand Up @@ -59,8 +58,7 @@ const getStyles = createGetStyles2024(ctx => ({
flexDirection: 'row',
alignItems: 'center',
borderRadius: 100,
// TODO: card2
backgroundColor: ctx.colors2024['neutral-bg-2'],
backgroundColor: ctx.colors2024['netural-card-2'],
paddingHorizontal: 8,
paddingVertical: 10,
display: 'flex',
Expand Down

0 comments on commit 2a570d4

Please sign in to comment.