{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5293","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5293/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5293/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5293/events","html_url":"https://github.com/facebook/react-native/issues/5293","id":126520947,"number":5293,"title":"ToolbarAndroid not rendering","user":{"login":"ndarilek","id":1172,"avatar_url":"https://avatars.githubusercontent.com/u/1172?v=3","gravatar_id":"","url":"https://api.github.com/users/ndarilek","html_url":"https://github.com/ndarilek","followers_url":"https://api.github.com/users/ndarilek/followers","following_url":"https://api.github.com/users/ndarilek/following{/other_user}","gists_url":"https://api.github.com/users/ndarilek/gists{/gist_id}","starred_url":"https://api.github.com/users/ndarilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndarilek/subscriptions","organizations_url":"https://api.github.com/users/ndarilek/orgs","repos_url":"https://api.github.com/users/ndarilek/repos","events_url":"https://api.github.com/users/ndarilek/events{/privacy}","received_events_url":"https://api.github.com/users/ndarilek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"},{"url":"https://api.github.com/repos/facebook/react-native/labels/For%20Stack%20Overflow","name":"For Stack Overflow","color":"fbca04"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-01-13T21:37:05Z","updated_at":"2016-07-20T09:27:31Z","closed_at":"2016-05-06T07:56:46Z","body":"Trying what I'd thought would be a simple view, a toolbar in a DrawerLayout. Eventually plan to add styling and actions but I can't even get this to render:\r\n\r\n```\r\nimport React, {\r\n  AppRegistry,\r\n  Component,\r\n  DrawerLayoutAndroid,\r\n  StyleSheet,\r\n  Text,\r\n  ToolbarAndroid,\r\n  View\r\n} from 'react-native';\r\n\r\nclass Perceptron extends Component {\r\n\r\n  renderNavigationView() {\r\n    return <View>\r\n      <Text>Home</Text>\r\n    </View>\r\n  }\r\n\r\n  onActionSelected(position) {\r\n  }\r\n\r\n  render() {\r\n    return <DrawerLayoutAndroid\r\n      drawerWidth={300}\r\n      drawerPosition={DrawerLayoutAndroid.positions.Left}\r\n      renderNavigationView={this.renderNavigationView}\r\n      >\r\n      <ToolbarAndroid\r\n        title=\"Perceptron\"\r\n        navIcon={require(\"./icons/empty.png\")}\r\n        onActionSelected={this.onActionSelected}\r\n        actions = {[\r\n          {title: \"Log out\", show: \"never\"}\r\n        ]}\r\n        />\r\n      <Text>Hello, world from the toolbar!</Text>\r\n    </DrawerLayoutAndroid>\r\n  }\r\n\r\n}\r\n\r\nAppRegistry.registerComponent(\"Perceptron\", () => Perceptron)\r\n```\r\n\r\nWhat am I missing? The only item that renders is the \"Hello, world from the toolbar!\" text.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/233898895","html_url":"https://github.com/facebook/react-native/issues/5293#issuecomment-233898895","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5293","id":233898895,"user":{"login":"paldepind","id":521604,"avatar_url":"https://avatars.githubusercontent.com/u/521604?v=3","gravatar_id":"","url":"https://api.github.com/users/paldepind","html_url":"https://github.com/paldepind","followers_url":"https://api.github.com/users/paldepind/followers","following_url":"https://api.github.com/users/paldepind/following{/other_user}","gists_url":"https://api.github.com/users/paldepind/gists{/gist_id}","starred_url":"https://api.github.com/users/paldepind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paldepind/subscriptions","organizations_url":"https://api.github.com/users/paldepind/orgs","repos_url":"https://api.github.com/users/paldepind/repos","events_url":"https://api.github.com/users/paldepind/events{/privacy}","received_events_url":"https://api.github.com/users/paldepind/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T09:27:31Z","updated_at":"2016-07-20T09:27:31Z","body":"I'm using 0.28 and also need to specify a height in order to get ToolbarAndroid to show up. Furthermore the first example in the documentation does not specify a height. Seems like an issue to me."}}
{"actor":{"display_login":"paldepind"}}