({
isV3,
label,
activeColor,
backgroundColor,
hasActiveOutline,
focused,
outlineColor,
roundness,
style,
}: OutlineProps)
| 22 | }; |
| 23 | |
| 24 | export const Outline = ({ |
| 25 | isV3, |
| 26 | label, |
| 27 | activeColor, |
| 28 | backgroundColor, |
| 29 | hasActiveOutline, |
| 30 | focused, |
| 31 | outlineColor, |
| 32 | roundness, |
| 33 | style, |
| 34 | }: OutlineProps) => ( |
| 35 | <View |
| 36 | testID="text-input-outline" |
| 37 | pointerEvents="none" |
| 38 | style={[ |
| 39 | styles.outline, |
| 40 | !label && styles.noLabelOutline, |
| 41 | // eslint-disable-next-line react-native/no-inline-styles |
| 42 | { |
| 43 | backgroundColor, |
| 44 | borderRadius: roundness, |
| 45 | borderWidth: (isV3 ? hasActiveOutline : focused) ? 2 : 1, |
| 46 | borderColor: hasActiveOutline ? activeColor : outlineColor, |
| 47 | }, |
| 48 | style, |
| 49 | ]} |
| 50 | /> |
| 51 | ); |
| 52 | |
| 53 | const styles = StyleSheet.create({ |
| 54 | outline: { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…