1.1.0 • Published 3 years ago

@themak/react-navigation v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@themak/react-navigation

NPM

React Navigation for React js that tries to ensure that the elements of the navigators display correctly on devices with notches (e.g. iPhone X) and UI elements which may overlap the app content. Such items include:

  • Currently only Home activity indicator on iOS is supported

    The area not overlapped by such items is referred to as "safe area".

Bottom Navigation in new iPhones

Getting Started

Install

npm install @themak/react-navigation

Usage

import Navigation from '@themak/react-navigation'

;<Navigation variant="bottom" columns={2} breakPoint="lg">
  <div>Home</div>
  <div>About</div>
</Navigation>

Props

NameTypeDefaultDescription
backgroundColorstring#ffffffThe color of the component background can be customized by changing.
breakPointfalse sm md lgfalseEach breakpoint (a key) matches with a fixed screen width (a value): sm: 640px md: 768px lg: 978px
childrennode-Contents to be displayed within root element.
classNamefalse stringfalseApply classes to the Navigation component.
columnsfalse numberfalseSet number of columns of grid.
safeAriaHeightstring84pxThe height of bottom navigation when is in safe area (for new iPhones)
heightstring56pxThe height of navigation
shadowfalse string0px 0px 6px 0px rgba(0,0,0,0.1)Set shadow for Navigation component
styleobject{}Apply styles to the Navigation component.
varianttop bottomtopSelect position of Navigation component
zIndexfalse number10Employing a z-index scale for Navigation component

License

MIT Licensed. © Copyright MohammadAli Karimi