1. 14 11月, 2020 1 次提交
  2. 11 11月, 2020 4 次提交
  3. 10 11月, 2020 7 次提交
    • S
      chore: publish · 1f5fb548
      Satyajit Sahoo 提交于
       - @react-navigation/drawer@5.11.1
      1f5fb548
    • S
      fix: provide correct context to drawe header · 18bbd177
      Satyajit Sahoo 提交于
      18bbd177
    • S
      chore: publish · 151055cf
      Satyajit Sahoo 提交于
       - @react-navigation/bottom-tabs@5.11.0
       - @react-navigation/compat@5.3.8
       - @react-navigation/core@5.14.2
       - @react-navigation/devtools@5.1.16
       - @react-navigation/drawer@5.11.0
       - @react-navigation/material-bottom-tabs@5.3.8
       - @react-navigation/material-top-tabs@5.3.8
       - @react-navigation/native@5.8.8
       - @react-navigation/routers@5.6.2
       - @react-navigation/stack@5.12.5
      151055cf
    • S
      fix: try fixing drawer blink on Android · 52172453
      Satyajit Sahoo 提交于
      52172453
    • S
      chore: show header in drawer by default · 7bc385e4
      Satyajit Sahoo 提交于
      7bc385e4
    • S
      6ac4d401
    • S
      feat: add option to show a header in drawer navigator screens · dbe961ba
      Satyajit Sahoo 提交于
      This commit adds new `header` and `headerShown` options in drawer navigator to be able to show a header, along with a bunch of header related options similar to stack navigator.
      
      Historically, we have suggested to nest a stack navigator inside drawer navigator to render a header. While it works, it's not efficient to nest an entire navigator just for a header, considering it adds a lot of additional overhead from the code to handle animations, gestures etc. which won't ever be run in this case. It also increases the view hierarchy which has negative impacts on performance on Android, and could cause content not to render on older iOS devices.
      
      Another issue with the approach is that since drawer navigator is at the root in this setup, it's possible to open drawer from every screen in the stack navigator, which usually isn't the expected behaviour. It's necessary to write additional code to disable the gesture to open drawer in all screens but first.
      
      In addition, users also need to add a custom drawer icon to the header manually to be able to toggle the drawer
      
      If drawer navigator could render its own header we'd avoid all these shortcomings as well as make the code simpler.
      
      For now, I have implemented a new `Header` component in drawer since it's way simpler than stack navigator header. Though we may consider creating a shared UI package and add such components there which all our navigators could use.
      
      The `Header` includes a button to toggle the drawer by default, and supports customization options such as showing custom left/right/title components. For this commit, I have kept `headerShown` to `false` by default coz I wasn't sure if it'd be a breaking change to start showing headers in drawers. Probably we can toggle it to `true` by default in next major.
      dbe961ba
  4. 09 11月, 2020 4 次提交
  5. 08 11月, 2020 1 次提交
    • S
      chore: publish · 50a161dc
      Satyajit Sahoo 提交于
       - @react-navigation/bottom-tabs@5.10.7
       - @react-navigation/compat@5.3.7
       - @react-navigation/core@5.14.1
       - @react-navigation/devtools@5.1.15
       - @react-navigation/drawer@5.10.7
       - @react-navigation/material-bottom-tabs@5.3.7
       - @react-navigation/material-top-tabs@5.3.7
       - @react-navigation/native@5.8.7
       - @react-navigation/routers@5.6.1
       - @react-navigation/stack@5.12.4
      50a161dc
  6. 07 11月, 2020 4 次提交
  7. 05 11月, 2020 8 次提交
  8. 04 11月, 2020 4 次提交
  9. 03 11月, 2020 6 次提交
  10. 30 10月, 2020 1 次提交
    • S
      chore: publish · 37b9454f
      Satyajit Sahoo 提交于
       - @react-navigation/bottom-tabs@5.10.2
       - @react-navigation/compat@5.3.2
       - @react-navigation/core@5.13.2
       - @react-navigation/devtools@5.1.10
       - @react-navigation/drawer@5.10.2
       - @react-navigation/material-bottom-tabs@5.3.2
       - @react-navigation/material-top-tabs@5.3.2
       - @react-navigation/native@5.8.2
       - @react-navigation/stack@5.11.1
      37b9454f