Skip to content

Commit

Permalink
chore: fixed types (#1123)(by @stropho)
Browse files Browse the repository at this point in the history
* fix: react 18 types
  • Loading branch information
stropho authored and gorhom committed Apr 30, 2023
1 parent 1d1a464 commit b440964
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,21 @@
"typescript": "4.9.4"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-native": "*",
"react": "*",
"react-native": "*",
"react-native-gesture-handler": ">=2.9.0",
"react-native-reanimated": ">=3.0.0"
},
"peerDependenciesMeta": {
"@types/react-native": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
2 changes: 1 addition & 1 deletion src/components/bottomSheet/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export interface BottomSheetProps
footerComponent?: React.FC<BottomSheetFooterProps>;
/**
* A scrollable node or normal view.
* @type React.ReactNode[] | React.ReactNode
* @type React.ReactNode
*/
children: React.ReactNode;
//#endregion
Expand Down
2 changes: 1 addition & 1 deletion src/components/bottomSheetFooter/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface BottomSheetDefaultFooterProps extends BottomSheetFooterProps {
/**
* Component to be placed in the footer.
*
* @type {ReactNode | ReactNode[]}
* @type {ReactNode|ReactNode[]}
*/
children?: ReactNode | ReactNode[];
}
4 changes: 2 additions & 2 deletions src/components/bottomSheetModal/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export interface BottomSheetModalProps

/**
* A scrollable node or normal view.
* @type React.ReactNode[] | React.ReactNode
* @type React.ReactNode[] | React.ReactNode | (({ data: any }?) => React.ReactElement)
*/
children:
| (({ data: any }?) => React.ReactNode)
| (({ data: any }?) => React.ReactElement)
| React.ReactNode[]
| React.ReactNode;
}

0 comments on commit b440964

Please sign in to comment.