-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (31 loc) · 788 Bytes
/
App.js
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
33
34
35
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { ThemeProvider, Text, Div } from 'react-native-magnus';
import THEMES from './constants/themes';
import ThemeSwitcher from './components/ThemeSwitcher';
const App = () => {
return (
<ThemeProvider theme={THEMES.light}>
<Div bg="body" flex={1} px="lg">
<Text mt="2xl" pt="xl" fontSize="5xl" color="text" fontWeight="bold">
Settings
</Text>
<Div row mt="md">
<Div flex={1}>
<Text color="text">Night Mode</Text>
</Div>
<Div>
<ThemeSwitcher />
</Div>
</Div>
</Div>
</ThemeProvider>
);
};
export default App;