import React from 'react'; import { View, StyleSheet, ScrollView } from 'react-native'; import type { Theme } from '../../types'; import { withTheme } from '../../core/theming'; import { Divider, Panel } from '../..'; // TODO: should we pass theme to wrapped components? (Divider, Panel etc); // TODO: add noBottomBorder and noTopBorder prop type Props = React.ComponentPropsWithRef & { children?: React.ReactNode; noBackground?: boolean; theme: Theme; }; const ScrollPanel = ({ children, noBackground, style = {}, theme, ...rest }: Props) => { return ( {children} ); }; const styles = StyleSheet.create({ wrapper: { flexGrow: 0, }, inner: { padding: 16, display: 'flex', flexDirection: 'row', alignItems: 'center', }, borderWrapper: { padding: 4, position: 'relative', minWidth: '100%', }, content: { marginLeft: 8, display: 'flex', flexDirection: 'row', alignItems: 'center', }, }); export default withTheme(ScrollPanel);