Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.
This repository was archived by the owner on May 20, 2021. It is now read-only.

Browser Back Button Not Working as execpted. #55

Open

Description

@belt-basya

Hi, I am using

"@react-navigation/web": "^1.0.0-alpha.9",
"react": "16.9.0",
"react-native-web": "0.11.7",
"react-navigation": "^4.4.0",
"react-navigation-stack": "^2.8.2",
"react-navigation-tabs": "^2.9.0",

I am facing below problems.

  1. For some screens the browser bak buttons work perfectly.
  2. For some other screen, After pressing the browser back buttons also it will remain on the same screen.
  3. For some other screen, the browser back button should press more than once(2-3) to go back.

This behavior is not constant i.e. it will change randomly from screen to screen.

I have referred this to handle browser back buttons https://www.youtube.com/watch?v=Czih6w57P9A i.e.

import { createBrowserApp } from '@react-navigation/web'
import { createAppContainer } from 'react-navigation'

const Navigator = Platform.OS === 'web' ? createBrowserApp(config, { history: 'hash' }) : createAppContainer(config)

Can you help me out? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions