DefinitelyTyped/types/react-native-check-box/react-native-check-box-tests.tsx
2020-01-10 11:38:12 -08:00

23 lines
700 B
TypeScript

import * as React from 'react';
import CheckBox from 'react-native-check-box';
import { View, Image } from 'react-native';
export default class MyCheckBox extends React.Component {
render() {
return (
<CheckBox
style={{ margin: 20 }}
onClick={() => {
console.log('clicked');
}}
checkBoxColor={'#000'}
isChecked={true}
leftTextStyle={{ color: 'red', fontSize: 10 }}
leftText={'Check me!'}
checkedImage={<Image source={{ uri: 'path/to/image.webp' }} />}
rightTextView={<View />}
/>
);
}
}