react-native-webview : View config getter callback for component RNCWebView must be a function (received undefined)
- Dominant language
- TypeScript
- Stars
- 510
- Forks
- 178
- Avg merge
- 5h 7m
- Merged PRs (30d)
- 5
Description
### 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
Contributor guide
Research direction
Start with the linked Snack reproduction and compare its behavior under Expo SDK 49 with the working SDK 48 and local-project cases. Trace how Snack resolves react-native-webview for Android and iOS; done means identifying the Snack-specific cause and documenting a verified fix or precise next step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100