react-native-country-picker-modal-xkelxmc
Version:
react-native country picker
17 lines • 810 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { View, StyleSheet, } from 'react-native';
import CloseButton from './CloseButton';
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
alignItems: 'center',
},
});
export const HeaderModal = (props) => {
const { withFilter, withCloseButton, closeButtonImage, closeButtonStyle, closeButtonImageStyle, onClose, renderFilter, } = props;
return (_jsxs(View, { style: styles.container, children: [withCloseButton && (_jsx(CloseButton, { image: closeButtonImage, style: closeButtonStyle, imageStyle: closeButtonImageStyle, onPress: () => onClose() })), withFilter && renderFilter(props)] }));
};
HeaderModal.defaultProps = {
withCloseButton: true,
};
//# sourceMappingURL=HeaderModal.js.map