MCPcopy Create free account
hub / github.com/callstack/react-native-paper / Outline

Function Outline

src/components/TextInput/Addons/Outline.tsx:24–51  ·  view source on GitHub ↗
({
  isV3,
  label,
  activeColor,
  backgroundColor,
  hasActiveOutline,
  focused,
  outlineColor,
  roundness,
  style,
}: OutlineProps)

Source from the content-addressed store, hash-verified

22};
23
24export 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
53const styles = StyleSheet.create({
54 outline: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…