Reputation: 93
My simple react code ;
import React from "react";
import { Text, StyleSheet,View } from "react-native";
import { WebView } from 'react-native';
const App = () => {
return(
<WebView
source={{
uri: 'https://www.google.com/'
}}
style={{ marginTop: 20 }}
/>
);
}
export default App;
Error ;
" Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. (Device) "
Upvotes: 1
Views: 333
Reputation: 84
The package you're trying to use is deprecated
You should use react-native-webview instead
Upvotes: 1