Answer the question
In order to leave comments, you need to log in
Why can WebView be dumb in Expo React Native?
Good day!
Made a webview application at Expo, React Native. I built it in the expo apk file too. But when I test, I observe different closures. For example,
- when navigating through pages, the screen is duplicated when scrolling, even the previous page is partially visible on another page, but the area is not active
- when you click on the button, blinking black around the button
- sometimes I go and just a black screen
In the end , not an application, but some kind of mess
Code standard from react-native-webview
import * as React from 'react';
import { WebView } from 'react-native-webview';
export default class App extends React.Component {
render() {
return <WebView source={{ uri: 'https://idcourier.uz' }} style={{ marginTop: 20 }} />;
}
}
Answer the question
In order to leave comments, you need to log in
Try to make a clean project at expo and see how the webview works without too much. I think it's just as bad. Another tip is to try to make a project not on expo but on react-native-cli. There is not a big chance that it will not be much better. But in general, you should not expect much from webview. He's been a jerk before.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question