1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-20 18:48:28 +02:00

15 lines
376 B
JavaScript
Raw Normal View History

const React = require('react'); const Component = React.Component;
const { connect } = require('react-redux');
const SideMenu_ = require('react-native-side-menu').default;
2017-05-24 19:27:13 +00:00
class SideMenuComponent extends SideMenu_ {};
2017-05-24 19:27:13 +00:00
const MySideMenu = connect(
(state) => {
return {
isOpen: state.showSideMenu,
};
}
)(SideMenuComponent)
2017-05-24 19:27:13 +00:00
module.exports = { SideMenu: MySideMenu };