Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing drawer methods from navigation prop #6592

Closed
slavikdenis opened this issue Feb 3, 2020 · 2 comments
Closed

Missing drawer methods from navigation prop #6592

slavikdenis opened this issue Feb 3, 2020 · 2 comments
Labels

Comments

@slavikdenis
Copy link

slavikdenis commented Feb 3, 2020

Using version: 4.1.0

What was the reason of removing drawer methods in this commit 683892e ?

Using react-navigation-hooks now breaks TS with:

Property 'closeDrawer' does not exist on type 'NavigationScreenProp<NavigationRoute<NavigationParams>, NavigationParams>'.     

28  const { navigate, closeDrawer } = useNavigation();
                      ~~~~~~~~~~~
Property 'toggleDrawer' does not exist on type 'NavigationScreenProp<NavigationRoute<NavigationParams>, NavigationParams>'.       

14  const { toggleDrawer } = useNavigation();
            ~~~~~~~~~~~~

Thanks

@slavikdenis slavikdenis added the bug label Feb 3, 2020
@satya164
Copy link
Member

satya164 commented Feb 3, 2020

https://reactnavigation.org/docs/en/typescript.html

react-navigation/hooks#42

@satya164 satya164 closed this as completed Feb 3, 2020
@slavikdenis
Copy link
Author

@satya164 oh, missed that. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants