How to set Drawer native base to right position - React Native

时间:2018-07-25 05:11:25

标签: react-native react-native-android react-native-ios

I'm using the native base library. I want to use the Drawer component, but I want to set it to the right position. How can I do this, as there is no property?

1 个答案:

答案 0 :(得分:0)

您可以使用side道具[*]。

<Drawer
    side="right"
    ref={ref => {
        this.drawer = ref;
    }}
    content={<SideBar navigator={this.navigator} />}
    onClose={() => this.closeDrawer()}
/>