Clone this repo and take a look of the index.ios.js
var SideMenu = require('sidemenu');
global.sideMenu =
<SideMenu
frontView={FrontView}
sideView={<SideView />}
/>;
var App = React.createClass({
render: function () {
return (
<View style={styles.container} >
{sideMenu}
</View>
);
}
})
Then at any place of you code, if you wanna toggle SideView manually, call sideMenu.props.toggleSideView()
Create an issue at main repo
Follow me at @khanght