-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (28 loc) · 857 Bytes
/
App.tsx
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
import * as Localization from 'expo-localization';
import I18n from 'i18n-js';
import React from 'react';
import { StatusBar, StyleSheet } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { de, en } from './src/i18n';
import { Navigation } from './src/navigation';
import { MyTheme } from './src/theme/colors';
export default function App() {
I18n.fallbacks = true;
// eslint-disable-next-line sort-keys
I18n.translations = { en, de };
I18n.locale = Localization.locale;
return (
<>
<StatusBar barStyle={'light-content'} backgroundColor={MyTheme.colors.background} />
<SafeAreaView style={style.container}>
<Navigation />
</SafeAreaView>
</>
);
}
const style = StyleSheet.create({
container: {
backgroundColor: MyTheme.colors.background,
flex: 1,
},
});