ReactNativeWebView is undefined #32487
Unanswered
othomas-fr
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hello,
I want to develop a component that have a different behaviour depending on if it is displayed in a WebView or not
I have a react-native app that display web apps in a WebView.
I know for sure my configuration is ok as the behaviour is fine for other web apps than Storybook
Running an iOs emulator, displaying my local Storybook in a WebView, I execute code that asserts ReactNativeWebView is undefined
Please help me to make it work
Storybook 9.0.16
vite 6.0.7
Additional information
if (!window.ReactNativeWebView) { window.alert('ReactNativeWebView is undefined') }
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions