Version: 1.0.0-alpha.11.0.0-alpha.21.0.0-alpha.31.0.0-alpha.41.0.0-alpha.51.0.0-alpha.61.0.0-alpha.71.0.0-alpha.81.0.0-alpha.91.0.0-alpha.101.0.0-alpha.111.0.0-alpha.121.0.0-alpha.141.0.0-alpha.151.0.0-alpha.161.0.0-alpha.171.0.0-alpha.181.0.0-alpha.191.0.0-alpha.201.0.0-alpha.211.0.0-alpha.221.0.0-alpha.232.0.0-alpha.12.0.0-alpha.22.0.0-alpha.32.0.0-alpha.42.0.0-alpha.52.0.0-alpha.62.0.0-alpha.72.0.0-alpha.82.0.0-alpha.92.0.0-alpha.102.0.0-alpha.112.0.0-alpha.122.0.0-alpha.132.0.0-alpha.142.0.0-alpha.152.0.0-alpha.162.0.0-alpha.172.0.0-alpha.182.0.0-alpha.192.0.0-alpha.202.0.0-alpha.212.0.0-alpha.222.0.0-alpha.232.0.0-alpha.242.0.0-alpha.252.0.0-alpha.262.0.0-alpha.272.0.0-alpha.282.0.0-alpha.292.0.0-alpha.302.0.0-alpha.312.0.0-alpha.322.0.0-alpha.332.0.0-alpha.342.0.0-beta.12.0.0-beta.22.0.0-beta.32.0.0-beta.42.0.0-beta.52.0.0-beta.62.0.0-beta.72.0.0-beta.82.0.0-beta.92.0.0-beta.102.0.0-beta.112.0.0-beta.122.0.0-beta.132.0.02.0.12.1.02.2.02.3.02.4.02.5.02.6.02.7.02.8.02.9.02.10.02.10.12.11.02.12.02.13.02.14.02.15.02.15.12.15.22.16.02.16.12.17.02.17.12.18.02.18.13.0.03.1.03.1.13.2.03.3.03.4.03.5.03.6.03.7.03.7.13.7.23.8.03.9.03.10.03.10.13.10.23.11.03.11.13.12.03.13.03.13.13.14.03.14.13.15.03.16.03.17.03.18.03.18.13.18.23.19.03.20.03.21.03.21.13.22.03.22.13.23.03.24.03.25.03.26.03.27.03.28.03.29.03.30.03.30.13.31.0-rc.03.31.0-rc.13.31.03.31.13.32.03.33.03.34.03.34.13.35.0-rc.03.35.0-rc.13.35.04.0.0-beta.04.0.0-beta.14.0.0-beta.24.0.0-beta.34.0.0-beta.44.0.0-beta.54.0.0-beta.64.0.0-beta.74.0.0-beta.84.0.0-beta.94.0.0-beta.104.0.0-beta.114.0.0-beta.124.0.0-beta.134.0.0-beta.144.0.0-beta.154.0.0-beta.164.0.0-beta.174.0.04.1.04.2.04.3.04.4.0-rc.04.4.0-rc.14.4.0
import { BackHandler, Platform } from 'react-native';
export const isSearchBarAvailableForCurrentPlatform = [
'ios',
'android',
].includes(Platform.OS);
export function executeNativeBackPress() {
// This function invokes the native back press event
BackHandler.exitApp();
return true;
}
// Because of a bug introduced in https://github.com/software-mansion/react-native-screens/pull/1646
// react-native-screens v3.21 changed how header's backTitle handles whitespace strings in https://github.com/software-mansion/react-native-screens/pull/1726
// To allow for backwards compatibility in @react-navigation/native-stack we need a way to check if this version or newer is used.
// See https://github.com/react-navigation/react-navigation/pull/11423 for more context.
export const isNewBackTitleImplementation = true;