Skip to content

Commit

Permalink
Merge pull request #55346 from software-mansion-labs/fix/input-label
Browse files Browse the repository at this point in the history
Fix extra spacing before field label
  • Loading branch information
puneetlath authored Jan 22, 2025
2 parents 6a338d9 + cf89e2b commit 40c96e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import type {Animated, ImageStyle, TextStyle, ViewStyle} from 'react-native';
import {Platform, StyleSheet} from 'react-native';
import type {CustomAnimation} from 'react-native-animatable';
import type {PickerStyle} from 'react-native-picker-select';
import {interpolate} from 'react-native-reanimated';
import type {SharedValue} from 'react-native-reanimated';
import type {MixedStyleDeclaration, MixedStyleRecord} from 'react-native-render-html';
import type {ValueOf} from 'type-fest';
import type DotLottieAnimation from '@components/LottieAnimations/types';
import {ACTIVE_LABEL_SCALE} from '@components/TextInput/styleConst';
import {getBrowser, isMobile, isMobileSafari, isSafari} from '@libs/Browser';
import CONST from '@src/CONST';
import {defaultTheme} from './theme';
Expand Down Expand Up @@ -1224,7 +1226,8 @@ const styles = (theme: ThemeColors) =>
'worklet';

return {
transform: [{translateY: translateY.get()}, {scale: scale.get()}],
transform: [{translateY: translateY.get()}],
fontSize: interpolate(scale.get(), [0, ACTIVE_LABEL_SCALE], [0, variables.fontSizeLabel]),
} satisfies TextStyle;
},

Expand Down

0 comments on commit 40c96e8

Please sign in to comment.