Resolved UIExplorer StatusBarIOS deprecation warning

Summary:UIExplorer `<NavigatorIOS> - Custom` was displaying a deprecation warning. I took the warning's advice and updated with `StatusBar.setBarStyle`.

Before:
![image](https://cloud.githubusercontent.com/assets/4726068/13193296/f5adfcbc-d72a-11e5-923f-f327382f0137.png)

After:
![image](https://cloud.githubusercontent.com/assets/4726068/13193303/0536ae4a-d72b-11e5-90ac-7338280ecac0.png)
Closes https://github.com/facebook/react-native/pull/6042

Differential Revision: D2960522

fb-gh-sync-id: 07569372d3f3446395bbad9f87aba91d4f693440
shipit-source-id: 07569372d3f3446395bbad9f87aba91d4f693440
This commit is contained in:
Scott Dixon 2016-02-22 08:27:18 -08:00 коммит произвёл facebook-github-bot-3
Родитель e3f19b176a
Коммит c79fed476c
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -16,7 +16,7 @@
var React = require('react-native');
var {
NavigatorIOS,
StatusBarIOS,
StatusBar,
StyleSheet,
Text,
View
@ -45,7 +45,7 @@ var NavigatorIOSColors = React.createClass({
render: function() {
// Set StatusBar with light contents to get better contrast
StatusBarIOS.setStyle('light-content');
StatusBar.setBarStyle('light-content');
return (
<NavigatorIOS
@ -55,7 +55,7 @@ var NavigatorIOSColors = React.createClass({
title: '<NavigatorIOS>',
rightButtonTitle: 'Done',
onRightButtonPress: () => {
StatusBarIOS.setStyle('default');
StatusBar.setBarStyle('default');
this.props.onExampleExit();
},
passProps: {