react-native-screens
Version:
Native navigation primitives for your React Native app.
15 lines (14 loc) • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.executeNativeBackPress = executeNativeBackPress;
exports.isSearchBarAvailableForCurrentPlatform = void 0;
var _reactNative = require("react-native");
const isSearchBarAvailableForCurrentPlatform = exports.isSearchBarAvailableForCurrentPlatform = ['ios', 'android'].includes(_reactNative.Platform.OS);
function executeNativeBackPress() {
// This function invokes the native back press event
_reactNative.BackHandler.exitApp();
return true;
}
//# sourceMappingURL=utils.js.map