mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
Fix some warnings in ReactExample from RN upgrade
This commit is contained in:
parent
8db0161ed8
commit
d29a6498dc
@ -18,10 +18,13 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React, {
|
import React from 'react';
|
||||||
|
|
||||||
|
import {
|
||||||
Component,
|
Component,
|
||||||
Navigator,
|
Navigator,
|
||||||
StatusBarIOS,
|
Platform,
|
||||||
|
StatusBar,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
@ -60,8 +63,8 @@ export default class TodoApp extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
if (StatusBarIOS) {
|
if (Platform.OS == 'ios') {
|
||||||
StatusBarIOS.setStyle('light-content');
|
StatusBar.setBarStyle('light-content');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React, {
|
import React from 'react';
|
||||||
|
|
||||||
|
import {
|
||||||
Text,
|
Text,
|
||||||
TouchableWithoutFeedback,
|
TouchableWithoutFeedback,
|
||||||
View,
|
View,
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React, {
|
import React from 'react';
|
||||||
|
|
||||||
|
import {
|
||||||
Platform,
|
Platform,
|
||||||
Text,
|
Text,
|
||||||
TextInput,
|
TextInput,
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React, {
|
import React from 'react';
|
||||||
|
|
||||||
|
import {
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user