Fix some warnings in ReactExample from RN upgrade

This commit is contained in:
Scott Kyle 2016-05-16 13:21:28 -07:00
parent 8db0161ed8
commit d29a6498dc
4 changed files with 16 additions and 7 deletions

View File

@ -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');
}
}

View File

@ -18,7 +18,9 @@
'use strict';
import React, {
import React from 'react';
import {
Text,
TouchableWithoutFeedback,
View,

View File

@ -18,7 +18,9 @@
'use strict';
import React, {
import React from 'react';
import {
Platform,
Text,
TextInput,

View File

@ -18,7 +18,9 @@
'use strict';
import React, {
import React from 'react';
import {
Text,
View,
} from 'react-native';