MCPcopy
hub / github.com/callstack/react-native-paper / getAppbarBorders

Function getAppbarBorders

src/components/Appbar/utils.ts:72–88  ·  view source on GitHub ↗
(
  style:
    | Animated.Value
    | Animated.AnimatedInterpolation<string | number>
    | Animated.WithAnimatedObject<ViewStyle>
)

Source from the content-addressed store, hash-verified

70};
71
72export const getAppbarBorders = (
73 style:
74 | Animated.Value
75 | Animated.AnimatedInterpolation<string | number>
76 | Animated.WithAnimatedObject<ViewStyle>
77) => {
78 const borders: Record<string, number> = {};
79
80 for (const property of borderStyleProperties) {
81 const value = style[property as keyof typeof style];
82 if (value) {
83 borders[property] = value;
84 }
85 }
86
87 return borders;
88};
89
90type BaseProps = {
91 isDark: boolean;

Callers 2

AppbarHeaderFunction · 0.90
Appbar.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…