Comments (14)
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.
@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.
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.
@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.
Sounds good. Do you want to make the change? @shirakaba
from react-native-wkwebview.
@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.
@shirakaba, sure but tomorrow probably
from react-native-wkwebview.
@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.
@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.
@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.
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.
Done @shirakaba @insraq
from react-native-wkwebview.
Thanks.
from react-native-wkwebview.
@insraq Could yoy please notify me when npm package will be updated?
from react-native-wkwebview.
Related Issues (20)
- How can I cache the requests or modify caching policies?
- Is it possible to load a page once and then injectJavascript?
- iOS >= 12.0 弹出键盘 界面顶上去了,收起键盘后留白, iOS<12.0 没问题 HOT 1
- Typescript support HOT 5
- Cannot build iOS app after linking HOT 3
- Open target="_blank" and embedded video in webview HOT 2
- Showing white screen in webview on app getting foreground from background HOT 2
- website page not update
- "CRAWKWebView" was not found HOT 2
- HTML5 Video support
- Is this module supported for react-native 0.60.4([CRAWKWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libreact-native-wkwebview.a(CRAWKWebView.o)) HOT 1
- 'React/RCTViewManager.h' file not found HOT 1
- how to uninstall
- Undefined symbol: _RCTJSNavigationScheme HOT 9
- How to use the prop allowsInlineMediaPlayback in react-native-WKWebView?
- Image on PDF not show
- wkwebview bounces not work
- Compile error HOT 1
- could'nt download pdf.
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-wkwebview.