Skip to content

Instantly share code, notes, and snippets.

@JuReyms
JuReyms / webview.js
Last active February 1, 2021 19:31 — forked from sdiama/webview.js
React Native: Handle hardware back button @ webview
import * as React from 'react';
import { BackHandler } from 'react-native';
import { WebView } from 'react-native-webview';
export default class App extends React.Component {
constructor(props) {
super(props);
this.WEBVIEW_REF = React.createRef();
}