expo/snack

react-native-webview : View config getter callback for component RNCWebView must be a function (received undefined)

Shedna opened this issue · 1 comments

Summary

Hello ! I'm facing a weird issue with Snack.
I've done a very concise Snack, only display a Webview using react-native-webview but I'm getting a weird error: View config getter callback for component RNCWebView must be a function (received undefined). I get this error with Expo 49 and react-native-webview 13.2.2.

Some hints :

  • It's working fine with Expo 48 and react-native-webview 11.26.0
  • If I copy paste this code and execute it locally (without Snack) it's working fine in any version. So my guess is an issue with Snack only and not Expo 49 nor react-native-webview.
  • The thing is I'm stuck because I'd like to use Expo Go to run the Snack on my device but since Expo 48 support is dropped on Expo Go I have no way to run the Snack on my device...

Thanks in advance for your help !

What platform(s) does this occur on?

Android, iOS

SDK Version

49.0.0

Reproducible demo or steps to reproduce from a blank project

https://snack.expo.dev/@shedna42/bug-report-expo

This is still an issue on both expo 49.0.0 with react native webview version 13.2.2 and expo 50.0.0 with react native webview version 13.6.4. Can someone please look into this? We can't test any webview apps on latest expo go since it requires expo 49 and 50 sdk.