import { WebView } from 'react-native'; deprecated
fabio-rodriguez opened this issue · comments
With the last version of react native, the WebView module change. Now it have to be imported this way:
import { WebView } from 'react-native-webview';
I'm trying to use it with the last of react-native using Expo (the code-sample). It doesn't seem to work for me because this issue. I've tried to change the code and import correctly the WebView component but it doesn't work either. The application exit with no error.
I had a problem usign npm and yarn mixed. It seems that PDFReader wheren't linked correctly. Also, when I installed via expo for some reason it installed me and old version of the packege.
I resolve the problem by deleting my node modules folder and reinstalling every package one by one using only yarn and expo install commands (without using npm install).