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

3.0.5 • Public • Published

Installation

npm install --save @types/react-native-button

Summary

This package contains type definitions for react-native-button (https://github.com/ide/react-native-button).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-button.

index.d.ts

import { Component } from "react";
import { StyleProp, TextProps, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";

export interface ButtonProps extends TouchableOpacityProps, Pick<TextProps, "allowFontScaling"> {
    containerStyle?: StyleProp<ViewStyle> | undefined;
    disabledContainerStyle?: StyleProp<ViewStyle> | undefined;
    style?: StyleProp<TextStyle> | undefined;
    styleDisabled?: StyleProp<TextStyle> | undefined;
    childGroupStyle?: StyleProp<ViewStyle> | undefined;
    androidBackground?: object | undefined;
}

export default class Button extends Component<ButtonProps> {
    constructor(props: object);
}

Additional Details

Credits

These definitions were written by mkchung.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-button

Weekly Downloads

936

Version

3.0.5

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • types