Navigate on WebView

Hi,

i built a single Expo app (Android) in managed Workflow, with one screen that contains a webview.



import React, { Component, useState } from "react";
import { Alert, StyleSheet, Text, TouchableHighlight, View, Modal } from 'react-native';
import { WebView } from 'react-native-webview';




export default class MyWeb extends Component {
  render() {
    return (

      <WebView
        source={{ uri: 'https://example.com/forum/' }}
        style={{ marginTop: 20 }}
      />
    );
  }
}

now i want to configure the Android Back button to switch to the latest open webpage, instead of closing the app. Normal routing isnĀ“t possible, because its a Forum, and had many pages and subpages that change often.

is it possible to configure the Back button like the Back button in a normal webbrowser (go one page back at press)?

i have the same problem, what code can we add so we can go back without closing the webview app?
I have seen some people includes 2 buttons, one for going forward and one for going backwards, but i want to go forward by clicking links, and back with back android native button. please help.

I have the same problem and everything I find is out of date