{"action":"created","issue":{"url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/15","labels_url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/15/comments","events_url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/15/events","html_url":"https://github.com/Kureev/react-native-side-menu/issues/15","id":76437885,"number":15,"title":"menuActions outside of the scope?","user":{"login":"PatrickHeneise","id":74390,"avatar_url":"https://avatars.githubusercontent.com/u/74390?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickHeneise","html_url":"https://github.com/PatrickHeneise","followers_url":"https://api.github.com/users/PatrickHeneise/followers","following_url":"https://api.github.com/users/PatrickHeneise/following{/other_user}","gists_url":"https://api.github.com/users/PatrickHeneise/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickHeneise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickHeneise/subscriptions","organizations_url":"https://api.github.com/users/PatrickHeneise/orgs","repos_url":"https://api.github.com/users/PatrickHeneise/repos","events_url":"https://api.github.com/users/PatrickHeneise/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickHeneise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T17:55:04Z","updated_at":"2015-05-15T15:26:50Z","closed_at":null,"body":"I'm trying to add a navbar with a button that should toggle the menu, but can't find where menuActions are exposed.\r\n\r\nI tried various ideas with this.toggleMenu and having `toggleMenu` as a function in the menu class, but don't get it to work.\r\n\r\nAny ideas?\r\n\r\n```\r\n    var menu = <Menu navigator={nav}/>;\r\n\r\n    return (\r\n      <View>\r\n        <View>\r\n          <TouchableOpacity onPress={() => menu.toggleMenu()}>\r\n            <Text>Click</Text>\r\n          </TouchableOpacity>\r\n          <View>\r\n            <Text>\r\n              MyApp\r\n            </Text>\r\n          </View>\r\n        </View>\r\n        <SideMenu menu={menu}>\r\n          <ItemView navigator={nav} />\r\n        </SideMenu>\r\n      </View>\r\n    );\r\n```"},"comment":{"url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/comments/102432235","html_url":"https://github.com/Kureev/react-native-side-menu/issues/15#issuecomment-102432235","issue_url":"https://api.github.com/repos/Kureev/react-native-side-menu/issues/15","id":102432235,"user":{"login":"Kureev","id":2273613,"avatar_url":"https://avatars.githubusercontent.com/u/2273613?v=3","gravatar_id":"","url":"https://api.github.com/users/Kureev","html_url":"https://github.com/Kureev","followers_url":"https://api.github.com/users/Kureev/followers","following_url":"https://api.github.com/users/Kureev/following{/other_user}","gists_url":"https://api.github.com/users/Kureev/gists{/gist_id}","starred_url":"https://api.github.com/users/Kureev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kureev/subscriptions","organizations_url":"https://api.github.com/users/Kureev/orgs","repos_url":"https://api.github.com/users/Kureev/repos","events_url":"https://api.github.com/users/Kureev/events{/privacy}","received_events_url":"https://api.github.com/users/Kureev/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T15:26:50Z","updated_at":"2015-05-15T15:26:50Z","body":"I don't see any way to expose this functionality outside of `SideMenu` component. It can't be a static method as far as it use state to store current menu state. Why do you have this case? I mean isn't it enough to have an access to it in `Menu` component via prop?"}}