{"action":"created","issue":{"url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/34","repository_url":"https://api.github.com/repos/xotahal/react-native-material-ui","labels_url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/34/comments","events_url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/34/events","html_url":"https://github.com/xotahal/react-native-material-ui/issues/34","id":183297631,"number":34,"title":"Specify size of icon in toolbar left Element","user":{"login":"AbdoulayeKarimTraore","id":15995390,"avatar_url":"https://avatars.githubusercontent.com/u/15995390?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdoulayeKarimTraore","html_url":"https://github.com/AbdoulayeKarimTraore","followers_url":"https://api.github.com/users/AbdoulayeKarimTraore/followers","following_url":"https://api.github.com/users/AbdoulayeKarimTraore/following{/other_user}","gists_url":"https://api.github.com/users/AbdoulayeKarimTraore/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdoulayeKarimTraore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdoulayeKarimTraore/subscriptions","organizations_url":"https://api.github.com/users/AbdoulayeKarimTraore/orgs","repos_url":"https://api.github.com/users/AbdoulayeKarimTraore/repos","events_url":"https://api.github.com/users/AbdoulayeKarimTraore/events{/privacy}","received_events_url":"https://api.github.com/users/AbdoulayeKarimTraore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-16T22:52:30Z","updated_at":"2016-10-17T15:17:31Z","closed_at":null,"body":"I cannot specify the size of the icon by passing size in the props of the toolbar as follows\r\n```                    \r\n<Toolbar\r\n    style={{ container: { elevation: 0 }, leftElement: {size: 30} }}\r\n    leftElement='keyboard-arrow-left'\r\n    centerElement={this._toolbarTitle()}\r\n    rightElement={{\r\n        actions: ['person-add', 'comment'],\r\n        menu: { labels: ['Item 1', 'Item 2'] },\r\n    }}\r\n/>\r\n```\r\nthe only way to change the size of the icon is when i change the global uiTheme spacing.iconSize, I looked in the code and you do take it into account in IconToggle but the passing of size in the leftElement props generates a failed prop type warning that states that size is an invalide key :), is this the correct way of changing the size of the icon or is there another way that I don't know about ? using version 1.3.2 "},"comment":{"url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/comments/254238209","html_url":"https://github.com/xotahal/react-native-material-ui/issues/34#issuecomment-254238209","issue_url":"https://api.github.com/repos/xotahal/react-native-material-ui/issues/34","id":254238209,"user":{"login":"xotahal","id":3531955,"avatar_url":"https://avatars.githubusercontent.com/u/3531955?v=3","gravatar_id":"","url":"https://api.github.com/users/xotahal","html_url":"https://github.com/xotahal","followers_url":"https://api.github.com/users/xotahal/followers","following_url":"https://api.github.com/users/xotahal/following{/other_user}","gists_url":"https://api.github.com/users/xotahal/gists{/gist_id}","starred_url":"https://api.github.com/users/xotahal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xotahal/subscriptions","organizations_url":"https://api.github.com/users/xotahal/orgs","repos_url":"https://api.github.com/users/xotahal/repos","events_url":"https://api.github.com/users/xotahal/events{/privacy}","received_events_url":"https://api.github.com/users/xotahal/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T15:17:31Z","updated_at":"2016-10-17T15:17:31Z","body":"Hey @AbdoulayeKarimTraore ,\r\n\r\n`size` prop is just sugar for `style={width: 24, height: 24}` - globally in this project. So you can always and everywhere use `width` and `height`.\r\n\r\nBut you are right, it won't work in this case, because there is a bug in `IconToogle` :/"}}
{"actor":{"display_login":"xotahal"}}