JensenChen
JensenChen

Reputation: 11

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

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?

Upvotes: 1

Views: 3081

Answers (2)

Sarah
Sarah

Reputation: 72

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

Upvotes: 2

Aman Ullah
Aman Ullah

Reputation: 49

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.

Upvotes: 1

Related Questions