简体   繁体   中英

How hide Android's default back navigation button React Native

在此处输入图像描述

在此处输入图像描述

Hello!

In my React Native app I have custom back button (as you can see on IOS screenshot). But Android adds its own back button. How I can hide it?

I know that I can hide my custom button on Android, but in some cases I have back button with custom text, so for me only one solution is to hide Android's default back button.

I am using https://reactnavigation.org v6

have you tried with headerBackVisible prop in stack navigation setup

https://reactnavigation.org/docs/native-stack-navigator/#headerbackvisible

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM