You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.0 KiB
1 line
1.0 KiB
{"ast":null,"code":"import BackHandler from \"react-native-web/dist/exports/BackHandler\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nexport var isSearchBarAvailableForCurrentPlatform = ['ios', 'android'].includes(Platform.OS);\nexport function executeNativeBackPress() {\n BackHandler.exitApp();\n return true;\n}","map":{"version":3,"sources":["utils.ts"],"names":["isSearchBarAvailableForCurrentPlatform","includes","Platform","OS","executeNativeBackPress","BackHandler","exitApp"],"mappings":";;AAEA,OAAO,IAAMA,sCAAsC,GAAG,CACpD,KAAK,EACL,SAAS,CACV,CAACC,QAAQ,CAACC,QAAQ,CAACC,EAAE,CAAC;AAEvB,OAAO,SAASC,sBAAsB,GAAG;EAEvCC,WAAW,CAACC,OAAO,EAAE;EACrB,OAAO,IAAI;AACb","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"]},"metadata":{},"sourceType":"module"} |