خرید بک لینک

Vote count: 0

Basically, I have a component Called DrawerLayout, and DrawerContent which contains the contents of the Drawer.

Here is what the render() in DrawerLayout retus:

      <DrawerLayoutAndroid
        ref='navigation'
        drawerWidth={300}
        renderNavigationView={() => <DrawerContent />}
      >
        <DefaultRenderer navigationState={children[0]} onNavigate={this.props.onNavigate} />
      </DrawerLayoutAndroid>

In the documentation, it says that DrawerLayoutAndroid has closeDrawer() and openDrawer() methods. How can I pass these to DrawerContent?

Thanks

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 16 خرداد 1395 ساعت: 11:30

صفحه بندی