@types/react-native-navbar
TypeScript icon, indicating that this package has built-in type declarations

2.1.7 • Public • Published

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

Credits

These definitions were written by Ryo Kikuchi.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-navbar

Weekly Downloads

39

Version

2.1.7

License

MIT

Unpacked Size

5.17 kB

Total Files

5

Last publish

Collaborators

  • types