mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
[INJI-691] Merge remote-tracking branch 'upstream/develop' into inji-691
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,9 @@ import React from 'react';
|
||||
import Svg, {Image} from 'react-native-svg';
|
||||
import {Theme} from './styleUtils';
|
||||
import {ImageBackground} from 'react-native';
|
||||
import Home from '../../assets/Home_tab_icon.svg';
|
||||
import History from '../../assets/History_tab_icon.svg';
|
||||
import Share from '../../assets/Scan_tab_icon.svg';
|
||||
import PinICon from '../../assets/Pin_Icon.svg';
|
||||
import InjiSmallLogo from '../../assets/Inji_Logo.svg';
|
||||
import LockIcon from '../../assets/Lock_Icon1.svg';
|
||||
@@ -38,6 +41,48 @@ export class SvgImage {
|
||||
return <Logo width={width} height={height} />;
|
||||
}
|
||||
|
||||
static home(focused: boolean) {
|
||||
//NOTE: Here tab icons names should be same with key "name" in main.ts
|
||||
return (
|
||||
<Home
|
||||
color1={
|
||||
focused ? Theme.Colors.linearGradientStart : Theme.Colors.GrayIcon
|
||||
}
|
||||
color2={
|
||||
focused ? Theme.Colors.linearGradientEnd : Theme.Colors.GrayIcon
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
static share(focused: boolean) {
|
||||
//NOTE: Here tab icons names should be same with key "name" in main.ts
|
||||
return (
|
||||
<Share
|
||||
color1={
|
||||
focused ? Theme.Colors.linearGradientStart : Theme.Colors.GrayIcon
|
||||
}
|
||||
color2={
|
||||
focused ? Theme.Colors.linearGradientEnd : Theme.Colors.GrayIcon
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
static history(focused: boolean) {
|
||||
//NOTE: Here tab icons names should be same with key "name" in main.ts
|
||||
return (
|
||||
<History
|
||||
color1={
|
||||
focused ? Theme.Colors.linearGradientStart : Theme.Colors.GrayIcon
|
||||
}
|
||||
color2={
|
||||
focused ? Theme.Colors.linearGradientEnd : Theme.Colors.GrayIcon
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
static pinIcon() {
|
||||
return (
|
||||
<PinICon
|
||||
@@ -161,7 +206,7 @@ export class SvgImage {
|
||||
</ImageBackground>
|
||||
) : (
|
||||
<>
|
||||
<ProfileIcon />
|
||||
<ProfileIcon isPinned={props?.isPinned} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user