mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
* Revert "[INJIMOB-3622] Fix alignment in history screen (#2140)" This reverts commita0b08914e5. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "Injimob [3622] [3627] - BANNER ISSUE AND BRANDING CHANGES ISSUES (#2130)" This reverts commit522104811c. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "[INJIMOB-3633][INJIMOB-3636] fix icon bg color across app (#2134)" This reverts commitd8d718693d. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "[INJIMOB-3633] fix search bar clear icon not apperaing (#2133)" This reverts commit6a202b11af. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * [INJIMOB-3651]: revert all the branding changes Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * [INJIMOB-3651]: update all the snapshot Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> --------- Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com>
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import {Tooltip} from 'react-native-elements';
|
|
import {Centered} from './Layout';
|
|
import React from 'react';
|
|
import {Theme} from './styleUtils';
|
|
import testIDProps from '../../shared/commonUtil';
|
|
import {StyleProp} from 'react-native';
|
|
import {ViewStyle} from 'react-native';
|
|
|
|
export const CustomTooltip: React.FC<CustomTooltipProps> = props => {
|
|
return (
|
|
<Tooltip
|
|
{...testIDProps(props.testID)}
|
|
popover={props.toolTipContent}
|
|
width={props.width}
|
|
height={props.height}
|
|
withPointer={true}
|
|
withOverlay={false}
|
|
skipAndroidStatusBar={true}
|
|
pointerColor={Theme.Colors.toolTipPointerColor}
|
|
containerStyle={Theme.Styles.tooltipContainerStyle}>
|
|
<Centered style={props.triggerComponentStyles} fill>
|
|
{props.triggerComponent}
|
|
</Centered>
|
|
</Tooltip>
|
|
);
|
|
};
|
|
|
|
interface CustomTooltipProps {
|
|
width: number;
|
|
height: number;
|
|
triggerComponent: React.ReactElement;
|
|
triggerComponentStyles: StyleProp<ViewStyle>;
|
|
testID: string;
|
|
toolTipContent?: React.ReactElement;
|
|
}
|