mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
const React = require('react'); const Component = React.Component;
|
|
const { connect } = require('react-redux');
|
|
const SideMenu_ = require('react-native-side-menu').default;
|
|
|
|
class SideMenuComponent extends SideMenu_ {};
|
|
|
|
const MySideMenu = connect(
|
|
(state) => {
|
|
return {
|
|
isOpen: state.showSideMenu,
|
|
};
|
|
}
|
|
)(SideMenuComponent)
|
|
|
|
module.exports = { SideMenu: MySideMenu }; |