Skip to content

Commit 390d485

Browse files
authored
Upgrate RN types and fix issues (wix#2260)
1 parent 4fcfcd5 commit 390d485

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"@types/jest": "^27.4.1",
7777
"@types/lodash": "^4.0.0",
7878
"@types/prop-types": "^15.5.3",
79-
"@types/react-native": "0.66.4",
79+
"@types/react": "^17.0.50",
80+
"@types/react-native": "0.68.5",
8081
"@types/tinycolor2": "^1.4.2",
8182
"@types/url-parse": "^1.4.3",
8283
"@typescript-eslint/eslint-plugin": "4.25.0",

src/components/listItem/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class ListItem extends Component<ListItemProps, ListItemState> {
6060

6161
renderCustomContainer = (Container: React.ComponentType) => {
6262
const {...others} = this.props;
63-
// @ts-expect-error
6463
return <Container {...others}>{this.renderChildren()}</Container>;
6564
};
6665

src/components/wizard/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface WizardStepProps {
4646
/**
4747
* Icon to replace the (default) index
4848
*/
49-
icon?: ImageProps;
49+
icon?: ImageProps['source'];
5050
/**
5151
* Additional styles for the index's label (when icon is not provided)
5252
*/

0 commit comments

Comments
 (0)