Code Monkey home page Code Monkey logo

Comments (14)

mikaoelitiana avatar mikaoelitiana commented on June 25, 2024 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

from react-native-android-fullscreen-webview-video.

amhinson avatar amhinson commented on June 25, 2024 1

@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.

adambeck7 avatar adambeck7 commented on June 25, 2024

Having the same issue.

from react-native-android-fullscreen-webview-video.

erenilhan avatar erenilhan commented on June 25, 2024

Same issue +1

from react-native-android-fullscreen-webview-video.

mikaoelitiana avatar mikaoelitiana commented on June 25, 2024

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.

nguyen95 avatar nguyen95 commented on June 25, 2024

Please merge pull request from @mikaoelitiana

from react-native-android-fullscreen-webview-video.

amhinson avatar amhinson commented on June 25, 2024

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.

mikaoelitiana avatar mikaoelitiana commented on June 25, 2024

@amhinson thanks for pointing that. I will try if this is working.

from react-native-android-fullscreen-webview-video.

kesepara avatar kesepara commented on June 25, 2024

@mikaoelitiana can you confirm that if react native's webview supports that?

from react-native-android-fullscreen-webview-video.

mikaoelitiana avatar mikaoelitiana commented on June 25, 2024

Yes as far as I know it works fine

from react-native-android-fullscreen-webview-video.

kesepara avatar kesepara commented on June 25, 2024

@mikaoelitiana thanks man, i will try.

from react-native-android-fullscreen-webview-video.

igchuk avatar igchuk commented on June 25, 2024

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.

loukrath avatar loukrath commented on June 25, 2024

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 avatar loukrath commented on June 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.