title: Event from event.nativeEvent.data logs as setImmediate$0.4162155499933975$1
body: <p>I am trying to pass token and other user details from React Web application to React Native application with Webview (react-native).</p>
  
  <p>When I do </p>
  
  <pre><code>window.postMessage(JSON.stringify(reactNativeObj), '*');
  </code></pre>
  
  <p>and log the event in React native application with </p>
  
  <pre><code>console.log( "On Message", event.nativeEvent.data );
  </code></pre>
  
  <p>It is printing the log as </p>
  
  <pre><code>On Message: setImmediate$0.4162155499933975$1
  </code></pre>
  
  <p>It should print my object instead. </p>
  
  <p>I have tried almost everything and re-read the document <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage</a> but couldn't make it work.</p>
  
  <p>Any help would be appreciated. </p>