Why navigation closeDrawer is not a function? - Stack Overflow