Giter VIP home page Giter VIP logo

Comments (14)

shirakaba avatar shirakaba commented on June 2, 2024

This is an issue with the (newer) version of React Native you're using, not an issue with this repo. As the warning suggests, use UIManager.getViewManagerConfig('CRAWKWebView') instead.

from react-native-wkwebview.

indapublic avatar indapublic commented on June 2, 2024

@shirakaba It's related to this repo code, not mine.
https://github.com/CRAlpha/react-native-wkwebview/blob/master/WKWebView.ios.js#L399

from react-native-wkwebview.

insraq avatar insraq commented on June 2, 2024

I haven't followed React Native for a while. Looking at the warning, it seems the code is deprecated. Feel free to submit a PR and I'll be happy to merge it. Although I am not sure whether this change will be backward compatible.

from react-native-wkwebview.

shirakaba avatar shirakaba commented on June 2, 2024

@indapublic Sorry for the misunderstanding; I see what you mean. A PR would be appreciated.

Although I am not sure whether this change will be backward compatible.

Yes – at the very least, this should involve a check of whether the method getViewManagerConfig really exists on UIManager. If it exists, use UIManager.getViewManagerConfig('CRAWKWebView'); otherwise, fall back to UIManager.CRAWKWebView.

from react-native-wkwebview.

insraq avatar insraq commented on June 2, 2024

Sounds good. Do you want to make the change? @shirakaba

from react-native-wkwebview.

shirakaba avatar shirakaba commented on June 2, 2024

@insraq Unfortunately I don't have time to test (and won't for a while), but here's a tentative PR: #223

@indapublic sorry for the trouble, but would you like to test whether my branch fixes your issue?

from react-native-wkwebview.

indapublic avatar indapublic commented on June 2, 2024

@shirakaba, sure but tomorrow probably

from react-native-wkwebview.

indapublic avatar indapublic commented on June 2, 2024

@shirakaba Looks good for me, but you are forgot change goBack and goForward methods. Just checked, I don't have any permissions for pushing to your branch. Should I create separate PR or just wait for your response?

from react-native-wkwebview.

insraq avatar insraq commented on June 2, 2024

@indapublic You can make a separate PR and I will merge it. Also it would be nice to extract all the duplicated code into a method.

from react-native-wkwebview.

shirakaba avatar shirakaba commented on June 2, 2024

@indapublic Sorry, find-and-replace didn't show up goBack and goForward in my interface so I missed them. I've amended the PR.

I misunderstood 'squash and merge' and looks like I've accidentally merged the amended branch it into master. I'll revert that.

Also it would be nice to extract all the duplicated code into a method.

Makes sense! Don't have a minute to spare for that at the moment, so will leave the PR open.

from react-native-wkwebview.

shirakaba avatar shirakaba commented on June 2, 2024

Sorry, @indapublic could you make a PR of your own, referencing my original PR if you wish, that extracts the duplicated code into a method? I unfortunately don't have time at the moment to deal with it.

from react-native-wkwebview.

indapublic avatar indapublic commented on June 2, 2024

Done @shirakaba @insraq

from react-native-wkwebview.

insraq avatar insraq commented on June 2, 2024

Thanks.

from react-native-wkwebview.

indapublic avatar indapublic commented on June 2, 2024

@insraq Could yoy please notify me when npm package will be updated?

from react-native-wkwebview.

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.