import React, {Component} from 'react'; import {Text, View, Alert} from 'react-native'; import WebView from 'react-native-webview'; const HTML = ` \n Messaging

`; type Props = {}; type State = {}; export default class Alerts extends Component { state = {}; render() { return ( { console.log('onMessage', e.nativeEvent.data); Alert.alert('Message received', e.nativeEvent.data); }} /> ); } }