(props: Props)
| 49 | * ``` |
| 50 | */ |
| 51 | const 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 | |
| 75 | DialogScrollArea.displayName = 'Dialog.ScrollArea'; |
| 76 |
nothing calls this directly
no test coverage detected
searching dependent graphs…