{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10602","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10602/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10602/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10602/events","html_url":"https://github.com/facebook/react-native/issues/10602","id":185839180,"number":10602,"title":"AndroidTextInput throws error when color style is set to null","user":{"login":"grubstarstar","id":1732170,"avatar_url":"https://avatars1.githubusercontent.com/u/1732170?v=3","gravatar_id":"","url":"https://api.github.com/users/grubstarstar","html_url":"https://github.com/grubstarstar","followers_url":"https://api.github.com/users/grubstarstar/followers","following_url":"https://api.github.com/users/grubstarstar/following{/other_user}","gists_url":"https://api.github.com/users/grubstarstar/gists{/gist_id}","starred_url":"https://api.github.com/users/grubstarstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubstarstar/subscriptions","organizations_url":"https://api.github.com/users/grubstarstar/orgs","repos_url":"https://api.github.com/users/grubstarstar/repos","events_url":"https://api.github.com/users/grubstarstar/events{/privacy}","received_events_url":"https://api.github.com/users/grubstarstar/received_events","type":"User","site_admin":false},"labels":[{"id":260305031,"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":{"login":"lacker","id":106475,"avatar_url":"https://avatars2.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"assignees":[{"login":"lacker","id":106475,"avatar_url":"https://avatars2.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-10-28T05:01:01Z","updated_at":"2017-05-25T20:39:05Z","closed_at":"2017-05-25T20:39:05Z","body":"### Description\n\nI have written a small component under \"Reproduction\" to describe this.\n\nIf you have a special style which is pushed onto a base style on a TextInput field, where the base style doesn't explicitly specify a \"color\" attribute but the special style does, then if the component re-renders from `[ baseStyle, specialStyle ]` to just `[ baseStyle ]` due to a `setState()` the following error is thrown. This happens only on the Android platform.\n\n```\nError while updating property 'color' of a view managed by: AndroidTextInput\n```\n### Reproduction\n\n```\nimport React, { Component } from 'react'\n\nimport {\n    StyleSheet,\n    TextInput\n} from 'react-native'\n\nexport default class Test extends Component {\n\n    constructor(props) {\n        super(props)\n        this.state = {\n            text: '',\n            special: false\n        }\n    }\n\n    render() {\n        let style = [ styles.baseStyle ]\n        if(this.state.special) style.push(styles.specialStyle)\n        return <TextInput\n                    style={ style }\n                    value={ this.state.text }\n                    onChangeText={ (text) => this.setState({\n                        text: text,\n                        special: !this.state.special\n                    }) } />\n    }\n}\n\nconst styles = StyleSheet.create({\n    baseStyle: {\n        height: 50,\n        // color: 'blue' <-- uncomment this code to make the problem go away\n    },\n    specialStyle: {\n        color: 'red'\n    }\n})\n```\n### Additional Information\n- React Native version:\n  $ react-native --version\n  react-native-cli: 1.0.0\n  react-native: 0.35.0\n- Platform: Android\n- Operating System: macOS Sierra\n"}}
{"actor":{"display_login":"hramos"}}