D
D
Dmitry Sudarkin2020-12-09 13:10:09
Android
Dmitry Sudarkin, 2020-12-09 13:10:09

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 }} />;
  }
}


What's going on with the app? How to treat? I didn’t find anything on the Internet ... Whoever encountered this, share your thoughts on this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2020-12-09
@RomReed

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 question

Ask a Question

731 491 924 answers to any question