{"action":"opened","issue":{"url":"https://api.github.com/repos/FaridSafi/react-native-gifted-chat/issues/569","repository_url":"https://api.github.com/repos/FaridSafi/react-native-gifted-chat","labels_url":"https://api.github.com/repos/FaridSafi/react-native-gifted-chat/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/FaridSafi/react-native-gifted-chat/issues/569/comments","events_url":"https://api.github.com/repos/FaridSafi/react-native-gifted-chat/issues/569/events","html_url":"https://github.com/FaridSafi/react-native-gifted-chat/issues/569","id":256374431,"number":569,"title":"mintoolbarheight updates one message render call too late?","user":{"login":"llanginger","id":16844415,"avatar_url":"https://avatars0.githubusercontent.com/u/16844415?v=4","gravatar_id":"","url":"https://api.github.com/users/llanginger","html_url":"https://github.com/llanginger","followers_url":"https://api.github.com/users/llanginger/followers","following_url":"https://api.github.com/users/llanginger/following{/other_user}","gists_url":"https://api.github.com/users/llanginger/gists{/gist_id}","starred_url":"https://api.github.com/users/llanginger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llanginger/subscriptions","organizations_url":"https://api.github.com/users/llanginger/orgs","repos_url":"https://api.github.com/users/llanginger/repos","events_url":"https://api.github.com/users/llanginger/events{/privacy}","received_events_url":"https://api.github.com/users/llanginger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-08T21:20:02Z","updated_at":"2017-09-08T21:20:02Z","closed_at":null,"author_association":"NONE","body":"#### Issue Description\r\n\r\nI am confused by this one - in my app I am setting `minToolBarHeight{this.state.toolbarHeight}`. My expectation is that `this.setState({toolbarHeight: 100})` would cause the toolbar to change to that height but it does not do this.\r\n\r\n#### Steps to Reproduce / Code Snippets\r\n\r\nI have a dummy button whose onPress, for testing purposes, is:\r\n\r\n``` \r\nonPress={() =>\r\n    this.setState({\r\n        toolbarHeight: this.state.toolbarHeight > 0 ? 0 : 100\r\n    },\r\n    () =>\r\n        console.log(\"Toolbar height: \", this.state.toolbarHeight)\r\n    )\r\n}\r\n```\r\n\r\n#### Expected Results\r\n\r\nHitting the above button will make the toolbar toggle between having 0 and 100 height.\r\n\r\nIn fact it causes no immediate effect but the next time a message is pushed onto the message stack the toolbar will at THAT point snap to the height in this.state.toolbarHeight.\r\n\r\nI am perfectly willing to accept that I am making a basic error here but if I am I am not seeing it and help would be GREATLY appreciated!!\r\n\r\n#### Additional Information\r\n\r\n* React Native version: 0.46.9\r\n* react-native-gifted-chat version: 0.2.5\r\n* Platform(s) (iOS, Android, or both?): iOs\r\n"}}
{"actor":{"display_login":"llanginger"}}