react-native-modern-header
Version:
Fully customizable Modern Header View for React Native
21 lines (20 loc) • 873 B
TypeScript
import * as React from "react";
import { StyleProp, ViewStyle } from "react-native";
import { ITitleProps } from "./components/title/Title";
import { ISidedComponentProps } from "./components/sided-component/SidedComponent";
declare type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
export interface IModernHeaderProps extends ITitleProps, ISidedComponentProps {
style?: CustomStyleProp;
leftImageSource?: any;
rightImageSource?: any;
leftComponentDisable?: boolean;
rightComponentDisable?: boolean;
leftCustomComponent?: React.ReactElement;
rightCustomComponent?: React.ReactElement;
leftComponentStyle?: CustomStyleProp;
rightComponentStyle?: CustomStyleProp;
onLeftPress?: () => void;
onRightPress?: () => void;
}
declare const ModernHeader: React.FC<IModernHeaderProps>;
export default ModernHeader;