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

Browser Back Button Not Working as execpted. #55

Open
belt-basya opened this issue Nov 30, 2020 · 0 comments
Open

Browser Back Button Not Working as execpted. #55

belt-basya opened this issue Nov 30, 2020 · 0 comments

Comments

@belt-basya
Copy link

belt-basya commented Nov 30, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant