Slow response on backbutton override
Description
I am overriding react navigation back button behavior on one of my screens. It works but it takes around 3-4 seconds to work.
Version
0.68.2
Output of npx react-native info
System: OS: Windows 10 10.0.19042 CPU: (4) x64 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz Memory: 1.53 GB / 7.91 GB Binaries: Node: 16.13.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.16.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: 16.11.31729.503 (Visual Studio Community 2019) Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
I am overriding react navigation back button behavior on one of my screens. It works but it takes around 3-4 seconds to work.
Snack, code example, screenshot, or link to a repository
options={({ navigation }) => ({ headerLeft: (props) => ( <HeaderBackButton {...props} onPress={() => { navigation.navigate("Home"); }} /> ), })}