mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
700 B
TypeScript
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 />}
|
|
/>
|
|
);
|
|
}
|
|
}
|