jh-mac 7 сар өмнө
parent
commit
012301411f
2 өөрчлөгдсөн 10 нэмэгдсэн , 2 устгасан
  1. 8 1
      app/_layout.tsx
  2. 2 1
      app/seach.tsx

+ 8 - 1
app/_layout.tsx

@@ -1,7 +1,14 @@
 import { Stack } from 'expo-router';
+import { StatusBar } from 'react-native';
 
 export default function Layout() {
   return (
-    <Stack screenOptions={{ headerShown: false }} />
+    <>
+      <StatusBar
+        barStyle="dark-content" // 텍스트 색상: 밝은 배경일 경우 dark-content
+        backgroundColor="#ffffff" // Android 전용 배경색
+      />
+      <Stack screenOptions={{ headerShown: false }} />
+    </>
   );
 }

+ 2 - 1
app/seach.tsx

@@ -11,6 +11,7 @@ import {
   Platform,
   Modal,
   Keyboard,
+  StatusBar
 } from 'react-native';
 import { fetchSongs } from '@/service/api';
 import { addToFavoritesStorage } from '@/service/storage';
@@ -116,7 +117,7 @@ export default function SearchScreen() {
       </View>
 
       {isLoading ? (
-        <Loading /> // 로딩 중일 때 Loading 컴포넌트 표시
+        <Loading /> 
       ) : (
         <FlatList<Song>
           data={results}