1 line
1.4 KiB
Plaintext
1 line
1.4 KiB
Plaintext
{"version":3,"names":["_reactNative","require","isSearchBarAvailableForCurrentPlatform","includes","Platform","OS","exports","executeNativeBackPress","BackHandler","exitApp","isNewBackTitleImplementation"],"sources":["utils.ts"],"sourcesContent":["import { BackHandler, Platform } from 'react-native';\n\nexport const isSearchBarAvailableForCurrentPlatform = [\n 'ios',\n 'android',\n].includes(Platform.OS);\n\nexport function executeNativeBackPress() {\n // This function invokes the native back press event\n BackHandler.exitApp();\n return true;\n}\n\n// Because of a bug introduced in https://github.com/software-mansion/react-native-screens/pull/1646\n// react-native-screens v3.21 changed how header's backTitle handles whitespace strings in https://github.com/software-mansion/react-native-screens/pull/1726\n// To allow for backwards compatibility in @react-navigation/native-stack we need a way to check if this version or newer is used.\n// See https://github.com/react-navigation/react-navigation/pull/11423 for more context.\nexport const isNewBackTitleImplementation = true;\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,sCAAsC,GAAG,CACpD,KAAK,EACL,SAAS,CACV,CAACC,QAAQ,CAACC,qBAAQ,CAACC,EAAE,CAAC;AAACC,OAAA,CAAAJ,sCAAA,GAAAA,sCAAA;AAEjB,SAASK,sBAAsBA,CAAA,EAAG;EACvC;EACAC,wBAAW,CAACC,OAAO,CAAC,CAAC;EACrB,OAAO,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAG,IAAI;AAACJ,OAAA,CAAAI,4BAAA,GAAAA,4BAAA"} |