{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10285","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10285/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10285/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10285/events","html_url":"https://github.com/facebook/react-native/issues/10285","id":181674811,"number":10285,"title":"`setNativeProps` does not work with `StatusBar` component ","user":{"login":"SandroMachado","id":631739,"avatar_url":"https://avatars.githubusercontent.com/u/631739?v=3","gravatar_id":"","url":"https://api.github.com/users/SandroMachado","html_url":"https://github.com/SandroMachado","followers_url":"https://api.github.com/users/SandroMachado/followers","following_url":"https://api.github.com/users/SandroMachado/following{/other_user}","gists_url":"https://api.github.com/users/SandroMachado/gists{/gist_id}","starred_url":"https://api.github.com/users/SandroMachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandroMachado/subscriptions","organizations_url":"https://api.github.com/users/SandroMachado/orgs","repos_url":"https://api.github.com/users/SandroMachado/repos","events_url":"https://api.github.com/users/SandroMachado/events{/privacy}","received_events_url":"https://api.github.com/users/SandroMachado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-07T13:54:13Z","updated_at":"2016-10-07T17:24:11Z","closed_at":null,"body":"### Issue Description\r\n\r\nI am trying to use the `setNativeProps` function with the `StatusBar`\r\n component and it is not working. I tried with the `View` component and it works as expected. Am I missing something?\r\n\r\n### Steps to Reproduce / Code Snippets\r\n\r\nMy `StatusView` in the render method.\r\n```\r\n<StatusBar\r\n  ref={ component => this._statusBar = component }\r\n  backgroundColor = { shadeStatusBarColor(this.pageArray[0].backgroundColor, -0.3) }\r\n/>\r\n```\r\n\r\nThe code to change the background color.\r\n```\r\nthis._statusBar.setNativeProps({\r\n  backgroundColor: shadeStatusBarColor(this.pageArray[index].backgroundColor, -0.3)\r\n});\r\n```\r\n#### Expected Results\r\n\r\nChange the color of the status bar, instead I get an error `this._statusBar.setNativeProps is not a function`. For the `View` component it works as expected.\r\n\r\n### Additional Information\r\n\r\n* React Native version: 0.34\r\n* Platform(s) (iOS, Android, or both?): both\r\n* Operating System (macOS, Linux, or Windows?): macOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/252311317","html_url":"https://github.com/facebook/react-native/issues/10285#issuecomment-252311317","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10285","id":252311317,"user":{"login":"SandroMachado","id":631739,"avatar_url":"https://avatars.githubusercontent.com/u/631739?v=3","gravatar_id":"","url":"https://api.github.com/users/SandroMachado","html_url":"https://github.com/SandroMachado","followers_url":"https://api.github.com/users/SandroMachado/followers","following_url":"https://api.github.com/users/SandroMachado/following{/other_user}","gists_url":"https://api.github.com/users/SandroMachado/gists{/gist_id}","starred_url":"https://api.github.com/users/SandroMachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandroMachado/subscriptions","organizations_url":"https://api.github.com/users/SandroMachado/orgs","repos_url":"https://api.github.com/users/SandroMachado/repos","events_url":"https://api.github.com/users/SandroMachado/events{/privacy}","received_events_url":"https://api.github.com/users/SandroMachado/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T17:24:11Z","updated_at":"2016-10-07T17:24:11Z","body":"I am trying to perform a workaround to by pass this [issue](https://github.com/FuYaoDe/react-native-app-intro/issues/38)."}}
{"actor":{"display_login":"SandroMachado"}}