react-navigation-use-getparam
v0.0.2
Published
for getParam hooks with react-navigation v5
Downloads
4
Readme
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 {
}
},[]);
...
}