Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Open&Close Drawer #58

Closed
AhmeSaid opened this issue Jan 9, 2020 · 1 comment
Closed

Open&Close Drawer #58

AhmeSaid opened this issue Jan 9, 2020 · 1 comment

Comments

@AhmeSaid
Copy link

AhmeSaid commented Jan 9, 2020

how can I open&close the Drawer Navigator using hooks?

@slorber
Copy link
Member

slorber commented Feb 3, 2020

Hi,

You should be able to do:

const { openDrawer, closeDrawer } = useNavigation<any>();

But you may have TS errors, see #42

@slorber slorber closed this as completed Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants