TS2769: No overload matches this call.
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Explain what you did
Implement the UI with components <ListItem> <ListItem.Title>
on React-native Typed
<ListItem.Content>
<ListItem.Title style={styles.itemText}>
{item.text}
</ListItem.Title>
</ListItem.Content>
Expected behavior
The component implementation should be compatible with latest TS Script version
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"@types/jest": "^26.0.23",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.2",
"@types/react-native": "^0.67.6",
"@types/react-test-renderer": "^17.0.1",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.5",
"babel-plugin-react-native-web": "^0.17.7",
"eslint": "^7.14.0",
"html-webpack-plugin": "^5.5.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.66.2",
"react-native-typescript-transformer": "^1.2.13",
"react-scripts": "^5.0.1",
"react-test-renderer": "17.0.2",
"source-map-loader": "^3.0.1",
"ts-loader": "^9.2.8",
"typescript": "^4.4.4",
"url-loader": "^4.1.1",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.8.1"
Describe the bug
TS2769: No overload matches this call.
Overload 1 of 2, '(props: ListItemTitleProps, context?: any): ReactElement<any, any> | null', gave the following error.
Type '{ children: string; style: any; }' is not assignable to type 'IntrinsicAttributes & ListItemTitleProps'.
Property 'children' does not exist on type 'IntrinsicAttributes & ListItemTitleProps'.
Overload 2 of 2, '(props: ListItemTitleProps): ReactElement<any, any> | null', gave the following error.
Type '{ children: string; style: any; }' is not assignable to type 'IntrinsicAttributes & ListItemTitleProps'.
Property 'children' does not exist on type 'IntrinsicAttributes & ListItemTitleProps'.
Steps To Reproduce
npm install latest package "react-native-elements": "^3.4.2",
Screenshots
No response
Your Environment
"react-native-elements": "^3.4.2",
Binaries:
Node: 16.13.2 - D:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - D:\Roaming\npm\yarn.CMD
npm: 6.14.5 - D:\Roaming\npm\npm.CMD
Watchman: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ^0.68.1 => 0.68.1
react-native-windows: Not Found
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
No overload matches this call. Type 'string' is not assignable to ...
This sometimes happens when you have passed an incorrect number of arguments to an anonymous function: Object.keys(data).reduce((key: ...
Read more >No overload matches this call error in TypeScript | bobbyhadz
The error "No overload matches this call" occurs when we call a function and pass it a parameter that doesn't match any of...
Read more >No overload matches this call with styled components - Medium
No overload matches this call in TypeScript is really annoying and there aren't too many solutions around there, though we have a solution!...
Read more >How to fix error TS2769 http options no overload matches this ...
This gave me this error in typeScript / Angular: error TS2769: No overload matches this call. Solution. You have to cast httpOptions to...
Read more >No overload matches this call when trying to use array.reduce
No overload matches this call.Overload 1 of 3, '(callbackfn: (previousValue: { character: string; currentClasses: string[]; }, currentValue: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @arpitBhalla I used @rneui/themed. I’m using rne version 4.0.0-rc.5.
For the preview:
Sure Dear, latest release still happens that issue