mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Incorrect casing on unCheckedImage prop in CheckBoxProps f… (#42595)
This commit is contained in:
2
types/react-native-check-box/index.d.ts
vendored
2
types/react-native-check-box/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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 />}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user