bpk-component-navigation-stack
Advanced tools
Weekly downloads
Readme
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
Backpack navigation stack component.
The npm package bpk-component-navigation-stack receives a total of 4 weekly downloads. As such, bpk-component-navigation-stack popularity was classified as not popular.
We found that bpk-component-navigation-stack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.