amis-rpc-design/node_modules/@react-navigation/elements/lib/commonjs/Header/getHeaderTitle.js
2023-10-07 19:42:30 +08:00

10 lines
339 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getHeaderTitle = getHeaderTitle;
function getHeaderTitle(options, fallback) {
return typeof options.headerTitle === 'string' ? options.headerTitle : options.title !== undefined ? options.title : fallback;
}
//# sourceMappingURL=getHeaderTitle.js.map