UNPKG

@react-native-community/checkbox

Version:

React Native Checkbox native modules for Android , iOS and Windows

15 lines (11 loc) 581 B
import {Component} from 'react'; import {NativeMethods} from 'react-native'; import {Props as AndroidProps} from '../dist/CheckBox.android'; import {Props as IOSProps} from '../dist/CheckBox.ios'; import {Props as WindowsProps} from '../dist/CheckBox.windows'; type Constructor<T> = new (...args: any[]) => T; type CheckBoxProps = AndroidProps & IOSProps & WindowsProps; declare class CheckBoxComponent extends Component<CheckBoxProps> {} declare const CheckBoxBase: Constructor<NativeMethods> & typeof CheckBoxComponent; export default class CheckBox extends CheckBoxBase {}