[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:
KiruthikaJeyashankar
2024-01-25 06:49:53 +05:30
35 changed files with 643 additions and 797 deletions

View File

@@ -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} />
</>
);
}