philipphecht / react-native-doc-viewer

React Native Doc Viewer (Supports file formats: xls,ppt,doc,xlsx,pptx,csv,docx,png,jpg,pdf,xml,binary ...)
MIT License
94 stars 116 forks source link

package com.facebook.react.views.webview does not exist #134

Open uendar opened 5 years ago

uendar commented 5 years ago

when i run : react-native run-androidi get error:


error: package com.facebook.react.views.webview does not exist
import com.facebook.react.views.webview.ReactWebViewManager;

Any one did resolve this ?

I am using react-native 0.60.3 react:16.8.6

aybarsyalcin commented 5 years ago

I have same problem. Any Solution?

tushartakamol commented 5 years ago

i also have the same issue please suggest any solution.Thanks in advance.

I am using react-native 0.60.2 react:16.8.6 react-native-doc-viewer: ^2.7.8

monicse09ku commented 5 years ago

@uendar @aybarsyalcin @tushartakamol did you fix this issue? how?

amitbravo commented 5 years ago

because react native discontinued webview to https://github.com/react-native-community/react-native-webview . it seriously needs to be updated even react-native-fetch-blob with rn-fetch-blob

chichilatte commented 5 years ago

@uendar, sorry to spam your thread: Did you ever fix this issue you posted in June? I've got the same thing.

tushartakamol commented 5 years ago

@monicse09ku I still did not found any solution for this issue .I started using below repo for my project. File Viewer

monicse09ku commented 5 years ago

@tushartakamol I degraded the react native version to 0.59.10 :( that fixed my issue.

JDLegaspi commented 5 years ago

@uendar @monicse09ku Anyone found another solution to this?

krizpoon commented 5 years ago

The deprecated class com.facebook.react.views.webview is not actually being used. It is just a redundant import. Could be fixed by removing the import in node_modules/react-native-doc-viewer/android/src/main/java/com/reactlibrary/RNReactNativeDocViewerModule.java

Remove the ununsed import:

import com.facebook.react.views.webview.ReactWebViewManager;
lonnylot commented 5 years ago

Fixed in PR #133

bear1030 commented 4 years ago

I just created my own repo.

https://github.com/bear1030/react-native-doc-viewer

madgreasemonkey commented 4 years ago

The deprecated class com.facebook.react.views.webview is not actually being used. It is just a redundant import. Could be fixed by removing the import in node_modules/react-native-doc-viewer/android/src/main/java/com/reactlibrary/RNReactNativeDocViewerModule.java

Remove the ununsed import:

import com.facebook.react.views.webview.ReactWebViewManager;

This solved it for me