fix(#395): [Vijay] add the limitation to VC Tag length in the Rename Option

This commit is contained in:
Vijay
2023-03-22 11:43:30 +05:30
parent 3d239ec9bf
commit 2725110673
3 changed files with 8 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ export const TextEditOverlay: React.FC<EditOverlayProps> = (props) => {
<Input
autoFocus
value={value}
maxLength={props.maxLength}
selectionColor={Theme.Colors.Cursor}
onChangeText={setValue}
/>
@@ -55,4 +56,5 @@ interface EditOverlayProps {
value: string;
onSave: (value: string) => void;
onDismiss: () => void;
maxLength?: number | undefined;
}

View File

@@ -69,6 +69,7 @@ export const ViewVcModal: React.FC<ViewVcModalProps> = (props) => {
isVisible={controller.isEditingTag}
label={t('editTag')}
value={controller.vc.tag}
maxLength={12}
onDismiss={controller.DISMISS}
onSave={controller.SAVE_TAG}
/>

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { View } from 'react-native';
import { Platform, View } from 'react-native';
import { getVersion } from 'react-native-device-info';
import { Icon, ListItem, Switch } from 'react-native-elements';
import { Column, Text } from '../../components/ui';
@@ -107,7 +107,10 @@ export const ProfileScreen: React.FC<MainRouteProps> = (props) => {
onValueChange={controller.useBiometrics}
trackColor={{
false: Theme.Colors.switchTrackFalse,
true: Theme.Colors.switchTrackTrue,
true:
Platform.OS == 'ios'
? Theme.Colors.switchHead
: Theme.Colors.switchTrackTrue,
}}
color={Theme.Colors.switchHead}
/>