mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 22:18:03 -05:00
* [INJIMOB-2242]: Integrating VcVerifier with Vc Validation and support for mutliple format into Inji for Android. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOM-2242]: Handling Error codes for Verification failures. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Passing credential format to VcVerifier. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Refactoring the code and updating the locales Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Updating the locales for verification error codes Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Updating talisman file. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]:Updating package-lock.json and adding comment in verifyCredential. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Reverting package-lock.json to align with develop Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Revert package-lock.json Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2242]: Update talismanrc Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> --------- Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import {I18nManager, TouchableOpacity} from 'react-native';
|
|
import {Icon} from 'react-native-elements';
|
|
import testIDProps from '../../../shared/commonUtil';
|
|
import {Theme} from '../styleUtils';
|
|
import LinearGradient from 'react-native-linear-gradient';
|
|
|
|
export const BackButton: React.FC<BackButtonProps> = (
|
|
props: BackButtonProps,
|
|
) => {
|
|
let containerStyle: object = Theme.Styles.backArrowContainer;
|
|
if (props.customIconStyle)
|
|
containerStyle = {...containerStyle, ...props.customIconStyle};
|
|
return (
|
|
<TouchableOpacity
|
|
onPress={props.onPress}
|
|
{...testIDProps('goBack')}
|
|
style={{zIndex: 1}}>
|
|
<LinearGradient
|
|
start={Theme.LinearGradientDirection.start}
|
|
end={Theme.LinearGradientDirection.end}
|
|
colors={Theme.Colors.GradientColorsLight}
|
|
style={{borderRadius: 10}}>
|
|
<Icon
|
|
{...testIDProps('arrow-left')}
|
|
name={I18nManager.isRTL ? 'arrow-right' : 'arrow-left'}
|
|
type="material-community"
|
|
onPress={props.onPress}
|
|
containerStyle={containerStyle}
|
|
color={Theme.Colors.Icon}
|
|
/>
|
|
</LinearGradient>
|
|
</TouchableOpacity>
|
|
);
|
|
};
|
|
|
|
interface BackButtonProps {
|
|
onPress: () => void;
|
|
customIconStyle?: object;
|
|
}
|