GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Release v5.0.0 · react-native-webview/react-native-webview

v5.0.0

@Titozzz Titozzz released this 01 Feb 17:39
· 833 commits to master since this release
v5.0.0
2d80402

5.0.0 (2019-02-01)

Features

  • Android/iOS postMessage: refactoring the old postMessage implementation (#303) (f3bdab5), closes #29 #272 #221 #105 #66

BREAKING CHANGES

  • Android/iOS postMessage:

Communication from webview to react-native has been completely rewritten. React-native-webview will not use or override window.postMessage anymore. Reasons behind these changes can be found throughout so many issues that it made sense to go that way.

window.postMessage(data, *) has been changed to
window.ReactNativeWebView.postMessage(data)

Side note: if you wish to keep compatibility with the old version when you upgrade, you can use the injectedJavascript prop to do that:

const injectedJavascript = `(function() {
  window.postMessage = function(data) {
    window.ReactNativeWebView.postMessage(data);
  };
})()`;

Huge thanks to @jordansexton and @KoenLav!

Assets 2
Loading

Uh oh!

There was an error while loading. Please reload this page.

NikhilCodes, chakrihacker, ttibau, ianharoldonwater, satheeshwaran, and joshjo-nsuslab reacted with thumbs up emoji NikhilCodes, tomaswrobel, ttibau, and ianharoldonwater reacted with laugh emoji NikhilCodes, ttibau, and ianharoldonwater reacted with hooray emoji NikhilCodes and ianharoldonwater reacted with heart emoji
All reactions
  • 👍 6 reactions
  • 😄 4 reactions
  • 🎉 3 reactions
  • ❤️ 2 reactions
7 people reacted
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.