react-navigation-use-getparam
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

react-navigation-use-getparam

You can use getParam hooks by this library with react-navigation v5.

install

$ npm install --save react-navigation-use-getparam

usage

...

/* import */
import useGetParam from 'react-navigation-use-getparam';

function HogeScreen(){
  const getParam = useGetParam();

  useEffect(() => {
    if (getParam('foo', null) === 'bar') {

    } else {
      
    }
  },[]);

  ...
}

Package Sidebar

Install

npm i react-navigation-use-getparam

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

1.85 kB

Total Files

4

Last publish

Collaborators

  • wtnbyu