import * as React from 'react'; import type { ImageSourcePropType } from 'react-native'; import { ImageBackground, StyleSheet, useWindowDimensions } from 'react-native'; interface HeaderBackgroundImageProps { background: React.ReactNode; backgroundHeight: number; backgroundImage: ImageSourcePropType; } export const HeaderBackgroundImage: React.FC = ({ background, backgroundHeight, backgroundImage, }) => { const { width } = useWindowDimensions(); return ( {background} ); }; const styles = StyleSheet.create({ headerStyle: { position: 'absolute', top: 0, left: 0, alignItems: 'flex-start', justifyContent: 'flex-end', zIndex: -1, }, });