import React from 'react'; import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native'; import type { Theme } from '../../types'; import { withTheme } from '../../core/theming'; import AppBarContent from './AppBarContent'; import AppBarBackAction from './AppBarBackAction'; import Panel from '../Panel'; type Props = React.ComponentPropsWithRef & { children: React.ReactNode; style?: StyleProp; theme: Theme; }; const AppBar = ({ children, style = {}, ...rest }: Props) => { return ( {children} ); }; const styles = StyleSheet.create({ wrapper: { position: 'relative', height: 56, flexDirection: 'row', alignItems: 'center', paddingHorizontal: 8, }, }); AppBar.Content = AppBarContent; AppBar.BackAction = AppBarBackAction; export default withTheme(AppBar);