1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/ReactNativeClient/lib/components/side-menu.js

13 lines
301 B
JavaScript
Raw Normal View History

const { connect } = require('react-redux');
const SideMenu_ = require('react-native-side-menu').default;
2017-05-24 21:27:13 +02:00
2019-07-29 15:43:53 +02:00
class SideMenuComponent extends SideMenu_ {}
2017-05-24 21:27:13 +02:00
const MySideMenu = connect(state => {
2019-07-29 15:43:53 +02:00
return {
isOpen: state.showSideMenu,
};
})(SideMenuComponent);
2017-05-24 21:27:13 +02:00
2019-07-29 15:43:53 +02:00
module.exports = { SideMenu: MySideMenu };