3.0.5 • Published 5 months ago

@types/react-native-button v3.0.5

Weekly downloads
2,011
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for react-native-button 3.0
// Project: https://github.com/ide/react-native-button
// Definitions by: mkchung <https://github.com/mkchung>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

3.0.5

5 months ago

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

3 years ago

3.0.0

3 years ago