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

Function DialogScrollArea

src/components/Dialog/DialogScrollArea.tsx:51–73  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

49 * ```
50 */
51const DialogScrollArea = (props: Props) => {
52 const theme = useInternalTheme(props.theme);
53 const borderStyles = {
54 borderColor: theme.isV3
55 ? theme.colors.surfaceVariant
56 : 'rgba(0, 0, 0, .12)',
57 borderTopWidth: theme.isV3 ? 1 : StyleSheet.hairlineWidth,
58 borderBottomWidth: theme.isV3 ? 1 : StyleSheet.hairlineWidth,
59 };
60 return (
61 <View
62 {...props}
63 style={[
64 styles.container,
65 borderStyles,
66 theme.isV3 && styles.v3Container,
67 props.style,
68 ]}
69 >
70 {props.children}
71 </View>
72 );
73};
74
75DialogScrollArea.displayName = 'Dialog.ScrollArea';
76

Callers

nothing calls this directly

Calls 1

useInternalThemeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…