Home > Enterprise >  Why ReactNative has better performance than WebView? If they use same Javascript Engine V8?
Why ReactNative has better performance than WebView? If they use same Javascript Engine V8?

Time:11-03

In Android Native, we use skia. WebView uses skia yet. If React Native use v8 engine, webview use v8 engine. What's the performance difference between ReactNative and WebView?

CodePudding user response:

  1. React Native renders are actually performed by native views via the bridge.
  2. The virtual DOM gives React better performance.

CodePudding user response:

In React-Native, you write Javascript. The Javascript communicates with native components (Java on Android, Objective C on iOS, C# on Windows).

Whereas WebView is simply a way to show a webpage in an app. It loads the content of the URL provided in the given screen size. The content does not communicate with the native components and hence will not give you native mobile application look.

  • Related