Comments (14)
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
from react-native-android-fullscreen-webview-video.
@loukrath I'd recommend just using react-native-webview
, as they've added support for precisely what this library was created for.
from react-native-android-fullscreen-webview-video.
Having the same issue.
from react-native-android-fullscreen-webview-video.
Same issue +1
from react-native-android-fullscreen-webview-video.
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",
from react-native-android-fullscreen-webview-video.
Please merge pull request from @mikaoelitiana
from react-native-android-fullscreen-webview-video.
It looks like react-native-webview supports fullscreen Android video now, so there might actually not be a need for this library anymore:
react-native-webview/react-native-webview#325
Would someone be able to confirm that is the case?
from react-native-android-fullscreen-webview-video.
@amhinson thanks for pointing that. I will try if this is working.
from react-native-android-fullscreen-webview-video.
@mikaoelitiana can you confirm that if react native's webview supports that?
from react-native-android-fullscreen-webview-video.
Yes as far as I know it works fine
from react-native-android-fullscreen-webview-video.
@mikaoelitiana thanks man, i will try.
from react-native-android-fullscreen-webview-video.
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.
from react-native-android-fullscreen-webview-video.
I got some error after I run react-native run-android
.
-
Error message:
- Task :react-native-android-fullscreen-webview-video:compileDebugJavaWithJavac FAILED
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
- com.facebook.react.views.webview.WebViewConfig
- com.facebook.react.views.webview.events.TopLoadingErrorEvent
- dispatchEvent(this, new TopMessageEvent(this.getId(), message))
-
Version:
- react-native: 0.61.2
- react-native-android-fullscreen-webview-video: 1.0.3
- react-native-webview: 5.8.1
from react-native-android-fullscreen-webview-video.
@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
from react-native-android-fullscreen-webview-video.
Related Issues (20)
- Black screen when play a video in Android emulator HOT 2
- Open webview in fullscreen and then press hardware back button, screen gone white HOT 5
- Finish View when Video Finished
- video position
- InjectedJS not working in release mode but working in debug mode Android
- Android fullscreen video do not hides StatusBar HOT 7
- Android fullscreen fullscreen keyboard issue HOT 1
- How to solve the garbled?
- Black Screen on play a video in full-screen mode HOT 6
- Fullscreen icon for video embedded in a website not working
- Not Working in many of android devices HOT 1
- black screen issue
- App Rejected from google play
- Doesn't work with portrait videos HOT 1
- onScroll event is not working
- Not Working as Required HOT 1
- Not Working HOT 1
- Native Component for RNCustomWebView Does Not Exist HOT 8
- Change to fullscreen mode from a custom button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-android-fullscreen-webview-video.