Issue with the TypeScript declaration for AutoHeightWebView
See original GitHub issueBug description:
After updating to 1.5.3 from 1.5.2 (after the switch to AutoHeightWebView extends WebView
), TS is showing me JSX element type 'AutoHeightWebView' does not have any construct or call signatures
To Reproduce:
Update to the latest version
Expected behavior:
Everything to work as expected
Screenshots/Videos:
Environment:
- react-native version: 0.63.2
- react-native-webview version: 10.8.2
- react-native-autoheight-webview version: 1.5.3
- typescript: 4.0.2,
- @types/react: 16.9.48,
- @types/react-native: 0.63.10,
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Could not find a declaration file for module ''react-materialize ...
I had this issue when I added react-router-dom to the new CRA app using typescript.
Read more >Active questions tagged react-native+typescript - Stack Overflow
Is it possible to use .js files in a typescript project in vs code? I have clone a react-native project from a github...
Read more >react-native-autoheight-webview: Versions - Openbase
Modified declaration file to fix props required issue. (#186) ... Extends WebView instead of Component in typescript declaration file.
Read more >An auto Height Webview for React Native - Morioh
<AutoHeightWebView onHeightUpdated={height => console.log(height)}, ... width is the width of screen // if there are some text selection issues on iOS, ...
Read more >React Native Custom Webview - Apicella Gomme
An auto height webview for React Native, even auto width for inline html. 4 headers: object: An object representing the HTTP headers. My...
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 Free
Top 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
We were indeed using an older version of react-native-webview. Upgrading to 11.0.2 fixed it. Thanks for the help!
@abenoit-reeliant Can not reproduce it with: