watanabeyu/react-navigation-use-getparam


for getParam hooks with react-navigation v5

Language: TypeScript

Keywords: hooks, react-native, react-navigation


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

  ...
}

Project Statistics

Sourcerank 1
Repository Size 60.5 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 539
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Yu Watanabe

Packages Referencing this Repo

react-navigation-use-getparam
for getParam hooks with react-navigation v5
Latest release 0.0.1 - Published

Something wrong with this page? Make a suggestion

Last synced: 2019-12-02 22:16:58 UTC

Login to resync this repository