How to add extra item at the bottom of the drawer navigation manually (like logout button)?

前端 未结 4 1345
一生所求
一生所求 2021-01-02 07:51

I want to add logout button to the bottom of the drawer navigation in my RN app.

I am trying to use contentComponent the following way:

4条回答
  •  生来不讨喜
    2021-01-02 08:17

    You can set position:'absolute' and buttom:0 like this code:

     {this.logout()}}
        style={{ bottom: 0, position: 'absolute', width: '100%' }}>
          
            
            Logout
          
    
    

    You can change the style to make it like other buttons. I hope this will help you...

提交回复
热议问题