import { StyleProp, TouchableWithoutFeedback, View, ViewStyle, } from 'react-native'; import React from 'react'; import { horizontalCenter } from '../Layout'; export type DarkCancelableContainerProps = { onDismiss: () => void; children: any; containerStyle?: StyleProp; withoutContainerClickable?: boolean; backgroundColor?: string; }; /** * cancelable container with dark background , can used with non-clickable container */ export function DarkCancelableContainer(props: DarkCancelableContainerProps) { return ( {props.withoutContainerClickable ? ( {props.children} ) : ( {props.children} )} ); }