2.1.7 • Published 5 months ago

@types/react-native-navbar v2.1.7

Weekly downloads
160
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for react-native-navbar 2.1
// Project: https://github.com/react-native-community/react-native-navbar
// Definitions by: Ryo Kikuchi <https://github.com/ryokik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';
import { ViewStyle, TextProps } 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.

2.1.7

5 months ago

2.1.4

8 months ago

2.1.6

6 months ago

2.1.5

7 months ago

2.1.3

3 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago