Skip to content

React Native WebView 12.0 adds Fabric support

updated

Version 12.0.0 of react-native-webview was released on 2023-04-01, and brings support for the new architecture (fabric).

According to the release notes, the maintainer spent considerable time re-learning the entire codebase, covering both the old and the new architecture, to avoid taking too many shortcuts in the implementation. The work is tracked in #2686.

Compatibility

The release is described as mostly non-breaking, apart from a few prop removals. Because the update involves a large amount of code written over a long period, the notes acknowledge that mistakes are possible and suggest that users who feel unsafe can stay on v11 for a while.

The maintainer also notes that this release unblocks many pending pull requests, which may now face merge conflicts, and says releasing can now pick up again.

Features

Breaking changes

  • Custom native implementations remain possible on the old architecture, but many classes were moved or renamed, so they will need some changes.
  • The following props were removed:
    • androidHardwareAccelerationDisabled (deprecated)
    • urlPrefixesForDefaultIntent (unused)

Source: github.com