0.0.2 • Published 4 years ago

react-navigation-use-getparam v0.0.2

Weekly downloads
13
License
-
Repository
github
Last release
4 years ago

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 {
      
    }
  },[]);

  ...
}