How to do animations in a Drawer navigation - react-native

I've been searching for this all over the internet and it's driving me crazy.
I want to apply animations for when closing a screen on my app, but I want to use a Drawer navigator. All I've found is either for other navigators (stack, modal) or for handling the drawer itself.
Can anyone help me with this? I'm losing my mind over it

Related

How to manage overlapping bar and drawer in React Native Navigation

I have five screens in a material bottom tab navigator. On one of the screens, I want to use a drawer for some settings. In the other screens there are currently no drawers planned, however if they come, they will have different content from this current one.
I want the drawer to be displayed above the bottom navigation bar. However I don't want to solve it by wrapping the whole material bottom tab navigator in a drawer navigator, as this would not make much sense and also provide the same drawer in all of the screens.
Is there another way of making the drawer appear on top of the bottom navigation bar? Ideally, the solution would not include react-navigation for the drawer at all, as I don't use it for navigation.
The answer appears to be to use a Modal, which can server as a popup. https://reactnative.dev/docs/modal for the documentation.

Properly making navigation prop types in React Navigation

I have a bottom tab navigator inside a drawer navigator inside a stack navigator. How do I make navigation prop types for it? I'm making them like in the docs but they don't seem to be working properly (not linking).
Any help appreciated.
I solved my problem using the following links:
Hiding Tabbar in screen and Screen options with nested navigators

How to add bottom tab navigator to one screen inside stack navigation?

I'm making an app, and in the app there is a home screen. On the home screen, I want to add a bottom navigator with various logos, which when clicked on, navigate the user to a different screen. I only want the bottom navigator to be on the screens that can be accessed from the bottom navigator in home. How would I do this? Would I need different types of navigators in my app.js since I'm using a stack navigator as well? Thanks for any help, I sincerely appreciate it.
Use tab-based-navigation provided by react-navigation. Make tab navigator with the screens that you want to be displayed with tab and wrap that in Stack. Any other screen that you want to display without tab navigation, just add as another stack and wrap all the stacks in Stack.Navigator. Here's the docs they are pretty well explained
https://reactnavigation.org/docs/tab-based-navigation

React Native - Drawer Navigation Gesture Start point

I'm using React native drawer navigation, when you swipe out from the left or right - it opens the drawer.
Does anyone know a way of changing the gesture start point, so that it starts slightly further into the screen?
My users are finding on curved screens it doesn't always drag out and feels un-natural to use.
I've looked through the documentation and couldn't find anything there.
Thank you!
Use edgeWidth props in react-navigation drawer.
edgeWidth-
Allows for defining how far from the edge of the content view the swipe gesture should activate.
For more details https://reactnavigation.org/docs/drawer-navigator/#edgewidth

React Native Navigation Drawer with Hamburger button

I'm trying to create a drawer menu with React Native Navigation. By default the drawer seems to work only by swiping. I've also tried triggering the drawer with a button. It was all good, but the problem is that I'd like the button (with a hamburger icon) to slide along with the drawer when it is closing/opening. Here are a couple of sketches of what I'd like to see:
I tried searching for information but nothing useful came up. The closest I got was this SO post, but in this case the button triggers a new screen to open, not a drawer menu to slide in.
Is this even possible to do, since I couldn't even find anything in the API docs for the DrawerNavigator? If so, any suggestions would be appreciated.