import * as React from 'react'; import { ImageSourcePropType, StyleProp, TextStyle, ImageStyle, ViewStyle } from 'react-native'; import { SafeAreaViewForceInsetValue} from '@react-navigation/native'; export const DEFAULT_NAVBAR_HEIGHT: number; export const GOBACK_BUTTON: string; export const GOBACK_IMAGE: ImageSourcePropType; interface SafeOptionsType { top: SafeAreaViewForceInsetValue; left: SafeAreaViewForceInsetValue; bottom: SafeAreaViewForceInsetValue; right: SafeAreaViewForceInsetValue; } interface SafeAreaInset { top: number; right: number; bottom: number; left: number; } export function getSafeAreaInset(isLandscape?: boolean): SafeAreaInset; export function forceInset(top: number, right: number, bottom: number, left: number): SafeOptionsType; interface InnerStyle { safeView?: StyleProp; absoluteView?: StyleProp; normalView?: StyleProp; container?: StyleProp; seperator?: StyleProp; titleContainer?: StyleProp; title?: StyleProp; leftView?: StyleProp; rightView?: StyleProp; buttonView?: StyleProp; buttonText?: StyleProp; gobackView?: StyleProp; gobackImage?: StyleProp; gobackText?: StyleProp; } export interface NaviBarProps { title?: string | number | React.ReactElement; titleCenter?: boolean; hasSeperatorLine?: boolean; leftElement?: string | number | React.ReactElement | Array; rightElement?: string | number | React.ReactElement | Array; onLeft?: (index: number) => boolean | void; onRight?: (index: number) => boolean | void; autoCloseKeyboard?: boolean; autoHardwareBack?: boolean; disableLock?: boolean; gobackImage?: ImageSourcePropType; gobackText?: string; isAbsolute?: boolean; isTranslucent?: boolean; safeOptions?: SafeOptionsType; navbarHeight?: number; style?: InnerStyle; } export class InnerNaviBar extends React.PureComponent {}; export default class NaviBar extends React.PureComponent {};