2018-03-09 19:49:35 +02:00
|
|
|
const React = require("react");
|
|
|
|
const Component = React.Component;
|
|
|
|
const { connect } = require("react-redux");
|
|
|
|
const { Log } = require("lib/log.js");
|
|
|
|
const SideMenu_ = require("react-native-side-menu").default;
|
2017-05-24 21:27:13 +02:00
|
|
|
|
2018-03-09 19:49:35 +02:00
|
|
|
class SideMenuComponent extends SideMenu_ {}
|
2017-05-24 21:27:13 +02:00
|
|
|
|
2018-03-09 19:49:35 +02:00
|
|
|
const MySideMenu = connect(state => {
|
|
|
|
return {
|
|
|
|
isOpen: state.showSideMenu,
|
|
|
|
};
|
|
|
|
})(SideMenuComponent);
|
2017-05-24 21:27:13 +02:00
|
|
|
|
2018-03-09 19:49:35 +02:00
|
|
|
module.exports = { SideMenu: MySideMenu };
|