From d29a6498dca0d94bb5318806e5f88584a0b1e8d9 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Mon, 16 May 2016 13:21:28 -0700 Subject: [PATCH] Fix some warnings in ReactExample from RN upgrade --- examples/ReactExample/components/todo-app.js | 11 +++++++---- examples/ReactExample/components/todo-item.js | 4 +++- examples/ReactExample/components/todo-list-item.js | 4 +++- examples/ReactExample/components/todo-listview.js | 4 +++- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/examples/ReactExample/components/todo-app.js b/examples/ReactExample/components/todo-app.js index 0759bdb4..31e0d55a 100644 --- a/examples/ReactExample/components/todo-app.js +++ b/examples/ReactExample/components/todo-app.js @@ -18,10 +18,13 @@ 'use strict'; -import React, { +import React from 'react'; + +import { Component, Navigator, - StatusBarIOS, + Platform, + StatusBar, Text, TouchableOpacity, View, @@ -60,8 +63,8 @@ export default class TodoApp extends Component { } componentWillMount() { - if (StatusBarIOS) { - StatusBarIOS.setStyle('light-content'); + if (Platform.OS == 'ios') { + StatusBar.setBarStyle('light-content'); } } diff --git a/examples/ReactExample/components/todo-item.js b/examples/ReactExample/components/todo-item.js index 4f0d2b27..9e36f849 100644 --- a/examples/ReactExample/components/todo-item.js +++ b/examples/ReactExample/components/todo-item.js @@ -18,7 +18,9 @@ 'use strict'; -import React, { +import React from 'react'; + +import { Text, TouchableWithoutFeedback, View, diff --git a/examples/ReactExample/components/todo-list-item.js b/examples/ReactExample/components/todo-list-item.js index 38a879ef..b82b823f 100644 --- a/examples/ReactExample/components/todo-list-item.js +++ b/examples/ReactExample/components/todo-list-item.js @@ -18,7 +18,9 @@ 'use strict'; -import React, { +import React from 'react'; + +import { Platform, Text, TextInput, diff --git a/examples/ReactExample/components/todo-listview.js b/examples/ReactExample/components/todo-listview.js index f05a18ea..4f94612a 100644 --- a/examples/ReactExample/components/todo-listview.js +++ b/examples/ReactExample/components/todo-listview.js @@ -18,7 +18,9 @@ 'use strict'; -import React, { +import React from 'react'; + +import { Text, View, } from 'react-native';