-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
32 lines (27 loc) · 1.26 KB
/
Copy pathindex.js
File metadata and controls
32 lines (27 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import 'react-native-gesture-handler';
import dayjs from 'dayjs';
import 'dayjs/locale/ko';
dayjs.locale('ko');
import { LocaleConfig } from 'react-native-calendars'; //
LocaleConfig.locales.ko = {
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
dayNames: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'], // ✅ 순서 수정
dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'],
today: '오늘',
};
LocaleConfig.defaultLocale = 'ko';
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
import messaging from '@react-native-firebase/messaging';
import { handleBackgroundMessage } from 'utils/notification';
// 백그라운드 메세지 핸들러 재등록 방지
if (!__DEV__ || !global.__hasSetBGMessageHandler) {
// 앱이 종료/백그라운드 상태일 때 메시지 핸들러 등록
messaging().setBackgroundMessageHandler(handleBackgroundMessage);
if (__DEV__) {
global.__hasSetBGMessageHandler = true;
}
}
AppRegistry.registerComponent(appName, () => App);