diff --git a/src/components/TextInput/Label/InputLabel.tsx b/src/components/TextInput/Label/InputLabel.tsx index bfa77c5092..7326f30f0c 100644 --- a/src/components/TextInput/Label/InputLabel.tsx +++ b/src/components/TextInput/Label/InputLabel.tsx @@ -38,7 +38,6 @@ const InputLabel = (props: InputLabelProps) => { labelTranslationXOffset, maxFontSizeMultiplier, testID, - theme, } = props; const paddingOffset = @@ -118,7 +117,6 @@ const InputLabel = (props: InputLabelProps) => { labeled, labelLayoutWidth, labelStyle, - theme, placeholderStyle, baseLabelTranslateX, topPosition, diff --git a/src/components/TextInput/Label/LabelBackground.tsx b/src/components/TextInput/Label/LabelBackground.tsx index 9fb9808989..20e775304c 100644 --- a/src/components/TextInput/Label/LabelBackground.tsx +++ b/src/components/TextInput/Label/LabelBackground.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import { Animated, StyleSheet } from 'react-native'; -import { useInternalTheme } from '../../../core/theming'; import AnimatedText from '../../Typography/AnimatedText'; import type { LabelBackgroundProps } from '../types'; @@ -16,15 +15,12 @@ const LabelBackground = ({ roundness, labelStyle, maxFontSizeMultiplier, - theme: themeOverrides, }: LabelBackgroundProps) => { const opacity = labeled.interpolate({ inputRange: [0, 0.6], outputRange: [1, 0], }); - const { isV3 } = useInternalTheme(themeOverrides); - const labelTranslationX = { translateX: labeled.interpolate({ inputRange: [0, 1], @@ -41,14 +37,6 @@ const LabelBackground = ({ const labelTextTransform = [...labelStyle.transform, labelTextScaleY]; - const labelTextWidth = isV3 - ? { - width: labelLayoutWidth - placeholderStyle.paddingHorizontal, - } - : { - maxWidth: labelLayoutWidth - 2 * placeholderStyle.paddingHorizontal, - }; - const isRounded = roundness > 6; const roundedEdgeCover = isRounded ? (