Fix some warnings in ReactExample from RN upgrade
This commit is contained in:
parent
8db0161ed8
commit
d29a6498dc
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import React, {
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
Text,
|
||||
TouchableWithoutFeedback,
|
||||
View,
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import React, {
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
Platform,
|
||||
Text,
|
||||
TextInput,
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import React, {
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
Text,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
|
Loading…
Reference in New Issue