Installation
npm install --save @types/react-native-navbar
Summary
This package contains type definitions for react-native-navbar (https://github.com/react-native-community/react-native-navbar).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-navbar.
index.d.ts
import * as React from "react";
import { TextProps, ViewStyle } from "react-native";
export interface NavigationBarButton {
title: string;
style?: ViewStyle | undefined;
handler?: (() => void) | undefined;
disable?: boolean | undefined;
}
export interface NavigationBarTitle {
title: string;
tintColor?: string | undefined;
ellipsizeMode?: TextProps["ellipsizeMode"] | undefined;
numberOfLines?: number | undefined;
}
export interface StatusBar {
style?: "light-content" | "default" | undefined;
hidden?: boolean | undefined;
tintColor?: string | undefined;
hideAnimation?: "fade" | "slide" | "none" | undefined;
showAnimation?: "fade" | "slide" | "none" | undefined;
}
export interface NavigationBarProps {
style?: ViewStyle | undefined;
tintColor?: string | undefined;
statusBar?: StatusBar | undefined;
leftButton?: NavigationBarButton | React.ReactElement | null | undefined;
rightButton?: NavigationBarButton | React.ReactElement | null | undefined;
title?: NavigationBarTitle | React.ReactElement | null | undefined;
}
export default class NavigationBar extends React.Component<NavigationBarProps> {}
Additional Details
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: @types/react, react-native
Credits
These definitions were written by Ryo Kikuchi.