Skip to content

Commit d398a39

Browse files
committed
Remove useColorScheme usage
1 parent 011cbc2 commit d398a39

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

private/helloworld/App.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@
88
*/
99

1010
import * as React from 'react';
11-
import {
12-
ScrollView,
13-
StatusBar,
14-
StyleSheet,
15-
Text,
16-
useColorScheme,
17-
} from 'react-native';
11+
import {ScrollView, StatusBar, StyleSheet, Text} from 'react-native';
1812

1913
function App(): React.ReactNode {
20-
const isDarkMode = useColorScheme() === 'dark';
21-
2214
return (
2315
<>
24-
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
16+
<StatusBar barStyle="auto" />
2517
<ScrollView contentInsetAdjustmentBehavior="automatic">
2618
<Text style={styles.title}>Hello, World!</Text>
2719
</ScrollView>

0 commit comments

Comments
 (0)