Skip to content

Commit

Permalink
refactor: update exporeIcon on bottom tab-bar (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Ranjit Tummalapalli <[email protected]>
Signed-off-by: Poonam Ghewande <[email protected]>
  • Loading branch information
poonam-ghewande and sairanjit committed Dec 11, 2023
1 parent 3d24bd1 commit 1ca72e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/assets/img/active-explore-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/navigators/TabStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const TabStack: React.FC = () => {
tabBarIconStyle: styles.tabBarIcon,
tabBarIcon: ({ focused }) => (
<View style={{ ...TabTheme.tabBarContainerStyle, justifyContent: showLabels ? 'flex-end' : 'center' }}>
<Assets.svg.ExploreIcon />
{focused ? <Assets.svg.ExploreIconActive /> : <Assets.svg.ExploreIcon />}
{showLabels && (
<Text
style={{
Expand Down
3 changes: 3 additions & 0 deletions app/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-nat
import { SvgProps } from 'react-native-svg'

import Arrow from './assets/icons/large-arrow.svg'
import ExploreIconActive from './assets/img/active-explore-icon.svg'
import AppLockout from './assets/img/app-lockout.svg'
import BackupSuccess from './assets/img/backup-success.svg'
import Biometrics from './assets/img/biometrics.svg'
Expand Down Expand Up @@ -30,6 +31,7 @@ export interface ISVGAssets {
iconProofRequestDark: React.FC<SvgProps>
IconInfoSentDark: React.FC<SvgProps>
ExploreIcon: React.FC<SvgProps>
ExploreIconActive: React.FC<SvgProps>
}

export interface IFontAttributes {
Expand Down Expand Up @@ -845,6 +847,7 @@ export const Assets = {
iconProofRequestDark: IconProofRequestDark,
IconInfoSentDark: IconInfoSentDark,
ExploreIcon: ExploreIcon,
ExploreIconActive: ExploreIconActive,
},
img: {
logoPrimary: {
Expand Down

0 comments on commit 1ca72e3

Please sign in to comment.