weixin_39736547
weixin_39736547
2020-12-08 22:43

Toggle openDrawer

what command do I need to run openDrawer on to toggle it?

该提问来源于开源项目:Tinysymphony/react-native-drawer-menu

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39760857 weixin_39760857 5月前

    If you need to open the drawer manually, use ref to call instance method openDrawer. To close the drawer, call closeDrawer.

    Oh....I might have misunderstood your question. Do you mean this component needs a method like toggleDrawer?

    点赞 评论 复制链接分享
  • weixin_39736547 weixin_39736547 5月前

    I use this.drawer.opendrawer which it works. However after the menu is completely open. The screen will be all white... Using it on react native web.

    I should post a git so that you understand the issue

    点赞 评论 复制链接分享
  • weixin_39760857 weixin_39760857 5月前

    I haven't tried react native web yet. I will check this issue after my vacation.

    点赞 评论 复制链接分享
  • weixin_39736547 weixin_39736547 5月前

    No problem.. I'll download your sample code and try it in rnw thanks

    On Jun 4, 2017 23:07, "WyTiny" wrote:

    I haven't tried react native web yet. I will check this issue after my vacation.

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tinysymphony/react-native-drawer-menu/issues/9#issuecomment-306045649, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh1WRzhP5WiN2FyDHLen5caBZW6yecoks5sAsgcgaJpZM4NuowC .

    点赞 评论 复制链接分享

相关推荐