npm.io
2.1.7 • Published 2 years ago

@types/react-native-navbar

Licence
MIT
Version
2.1.7
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

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.