
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
bpk-component-navigation-stack
Advanced tools
Backpack navigation stack component.
npm install bpk-component-navigation-stack --save-dev
import React from 'react';
import BpkNavigationStack from 'bpk-component-navigation-stack';
export default () => (
<BpkNavigationStack views={[<div />]} />
);
Property | PropType | Required | Default Value |
---|---|---|---|
views | arrayOf(element) | true | - |
className | string | false | null |
withNavigationStackState
returns a HOC with two instance methods, pushView
and popView
,
that can be used to push and pop views from the stack component.
import React from 'react';
import BpkNavigationStack, { withNavigationStackState } from 'bpk-component-navigation-stack';
const StatefulNavigationStack = withNavigationStackState(BpkNavigationStack);
export default () => (
<StatefulNavigationStack initialViews={[<div />]} />
);
By default the pushView
and popView
callbacks are forwarded to the children, if you
want to disabled this behaviour pass false
as the second argument, in this case the
callbacks are forwarded to the Stack component instead.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.