From c79fed476c26f8172674d83a2cb5ded6adbbbeab Mon Sep 17 00:00:00 2001 From: Scott Dixon Date: Mon, 22 Feb 2016 08:27:18 -0800 Subject: [PATCH] Resolved UIExplorer StatusBarIOS deprecation warning Summary:UIExplorer ` - 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 --- Examples/UIExplorer/NavigatorIOSColorsExample.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/UIExplorer/NavigatorIOSColorsExample.js b/Examples/UIExplorer/NavigatorIOSColorsExample.js index 4078cac6d..1735633c9 100644 --- a/Examples/UIExplorer/NavigatorIOSColorsExample.js +++ b/Examples/UIExplorer/NavigatorIOSColorsExample.js @@ -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 ( ', rightButtonTitle: 'Done', onRightButtonPress: () => { - StatusBarIOS.setStyle('default'); + StatusBar.setBarStyle('default'); this.props.onExampleExit(); }, passProps: {