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

Function Stack

docs/src/components/BannerExample.tsx:44–54  ·  view source on GitHub ↗
({ direction = 'column', spacing = 0, style, children })

Source from the content-addressed store, hash-verified

42 style?: any;
43 }>
44> = ({ direction = 'column', spacing = 0, style, children }) => {
45 return (
46 <View style={[{ flexDirection: direction, margin: -spacing }, style]}>
47 {React.Children.map(children, (child, index) => (
48 <View key={index} style={{ flexDirection: direction, margin: spacing }}>
49 {child}
50 </View>
51 ))}
52 </View>
53 );
54};
55
56const BannerExample = () => {
57 const theme = useTheme();

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…