root-two / react-native-drawer

React Native Drawer
MIT License
2.54k stars 390 forks source link

Consider troubleshooting section #255

Open de-code opened 7 years ago

de-code commented 7 years ago

I thought it might be worth adding a troubleshooting section for some non-obvious problems (without logging or errors that could provide a clue).

Here are two that I encountered:

  1. Changing properties during transition seem to cause issues (e.g. onOpen function is dynamic because it's wrapped). The drawer didn't open. After ensuring that all passed in functions are wrapped only once seem to have fixed the issue.

  2. After some time debugging on Android I seem to have ended up with a view stack (i.e. React Native rendered the App multiple times). The drawer didn't open. Reload didn't resolve the issue. Pressing the back button a few times however did.