Moon-009 / react-native-chartjs

19 stars 24 forks source link

Why does 'Native component for "RNCWebView" does not exist' error come out? #11

Open berrybar opened 5 years ago

berrybar commented 5 years ago

22

"react": "16.3.1", "react-native": "0.55.4", "react-native-chartjs": "^1.0.3"

I installed react-native-chartjs and react-native-webview and run it. But there are still errors. How can i solve it??

amanmahalgavan commented 5 years ago

Facing the same issue. Is there a fix for this yet?

Moon-009 commented 4 years ago

Facing the same issue. Is there a fix for this yet?

22

"react": "16.3.1", "react-native": "0.55.4", "react-native-chartjs": "^1.0.3"

I installed react-native-chartjs and react-native-webview and run it. But there are still errors. How can i solve it??

sorry for that. This's because RN has upgraded that it uses a new webview core. I am busy these days.I cannot fix it in time. sorry again.

adujoseph commented 4 years ago

pod 'react-native-webview', :path => '../node_modules/react-native-webview'

add this to podfile in ios and run cd ios && pod install

adujoseph commented 4 years ago

andriod/settings.gradle: include ':react-native-webview' project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')

android/app/build.gradle: compile project(':react-native-webview')

MainApplication.java: import com.reactnativecommunity.webview.RNCWebViewPackage;

this should work for android

berrybar commented 4 years ago

Maybe i think the problem was solved through a react native version upgrade. Thanks for your reply.

2020년 2월 6일 (목) 오후 6:18, adujoseph notifications@github.com님이 작성:

andriod/settings.gradle: include ':react-native-webview' project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')

android/app/build.gradle: compile project(':react-native-webview')

MainApplication.java: import com.reactnativecommunity.webview.RNCWebViewPackage;

this should work for android

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/KittyCookie/react-native-chartjs/issues/11?email_source=notifications&email_token=ALQJ4IUNFRBJIRPXMPFQCEDRBPIWXA5CNFSM4IQWGPN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK6PL7Q#issuecomment-582809086, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQJ4IXADVFBJ56QFOPS3KDRBPIWXANCNFSM4IQWGPNQ .