Open mikaoelitiana opened 5 years ago
Having the same issue.
Same issue +1
I have fixed this issue and created a PR #28 but now I am getting another issue :
Requiring module "index.android.js", which threw an exception: Invariant Violation: Tried to register two views with the same name RNCWebView
I finally found the cause of this last issue, I had to set same version of react-native-webview
in my root project as in react-native-android-fullscreen-webview-video
:
"react-native-webview": "^5.12.1",
Please merge pull request from @mikaoelitiana
It looks like react-native-webview supports fullscreen Android video now, so there might actually not be a need for this library anymore: https://github.com/react-native-community/react-native-webview/pull/325
Would someone be able to confirm that is the case?
@amhinson thanks for pointing that. I will try if this is working.
@mikaoelitiana can you confirm that if react native's webview supports that?
Yes as far as I know it works fine
@mikaoelitiana thanks man, i will try.
The quickest fix is to change in iosWebView.js
import { WebView } from 'react-native';
to
import { WebView } from 'react-native-webview';`
And yes react-native-webview
has to be installed.
I got some error after I run react-native run-android
.
Error message:
Version:
@loukrath I'd recommend just using react-native-webview
, as they've added support for precisely what this library was created for.
@loukrath I'd recommend just using
react-native-webview
, as they've added support for precisely what this library was created for.
@amhinson It works for me, thanks
I am upgrading my RN project to RN 0.60 and got the following error from react-native-android-fullscreen-webview-video when compiling :