question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with the TypeScript declaration for AutoHeightWebView

See original GitHub issue

Bug 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:

image

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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
abenoit-reeliantcommented, Jan 18, 2021

We were indeed using an older version of react-native-webview. Upgrading to 11.0.2 fixed it. Thanks for the help!

0reactions
iou90commented, Jan 12, 2021

@abenoit-reeliant Can not reproduce it with:

"react": "16.13.1",
"react-native": "0.63.4",
"react-native-autoheight-webview": "^1.5.7",
"react-native-webview": "^11.0.2"
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found