Incorrect casing on unCheckedImage prop in CheckBoxProps f… (#42595)

This commit is contained in:
Marc Woolfson
2020-02-25 00:09:13 +00:00
committed by GitHub
parent b63a40b9e5
commit 1c21ecb184
2 changed files with 2 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ export interface CheckBoxProps {
rightTextStyle?: StyleProp<TextStyle>;
rightTextView?: React.ReactNode;
checkedImage?: React.ReactElement;
uncheckedImage?: React.ReactElement;
unCheckedImage?: React.ReactElement;
isChecked: boolean;
onClick: () => void;
disabled?: boolean;

View File

@@ -15,6 +15,7 @@ export default class MyCheckBox extends React.Component {
leftTextStyle={{ color: 'red', fontSize: 10 }}
leftText={'Check me!'}
checkedImage={<Image source={{ uri: 'path/to/image.webp' }} />}
unCheckedImage={<Image source={{ uri: 'path/to/image.webp' }} />}
rightTextView={<View />}
/>
);