first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useBottomAccessoryFunctionFromBottomAccessories = useBottomAccessoryFunctionFromBottomAccessories;
const react_1 = require("react");
const hooks_1 = require("../hooks");
/**
* Converts `<NativeTabs.BottomAccessory>` component into a function,
* which can be used by `react-native-screens` to render the accessory.
*/
function useBottomAccessoryFunctionFromBottomAccessories(bottomAccessory) {
return (0, react_1.useMemo)(() => bottomAccessory
? (environment) => (<hooks_1.BottomAccessoryPlacementContext value={environment}>
{bottomAccessory.props.children}
</hooks_1.BottomAccessoryPlacementContext>)
: undefined, [bottomAccessory]);
}
//# sourceMappingURL=bottomAccessory.js.map