-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.tsx
37 lines (33 loc) · 913 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
32
33
34
35
36
37
import React from 'react'
import { SafeAreaView, StyleSheet, View } from 'react-native'
import schemes, { Scheme } from './src/colorschemes/parseScheme'
import styled, { ThemeProvider } from 'styled-components'
import BrowserWindow from './src/views/BrowserWindow'
// and extend them!
declare module 'styled-components' {
export interface DefaultTheme extends Scheme {}
}
const Desktop = styled(View)`
flex: 1;
background-color: ${({ theme }) => theme.colors.Background};
align-items: center;
justify-content: center;
overflow: hidden;
`
export default function App() {
return (
<ThemeProvider theme={schemes['Windows Standard']}>
<SafeAreaView style={styles.outerWrap}>
<Desktop>
<BrowserWindow />
</Desktop>
</SafeAreaView>
</ThemeProvider>
)
}
const styles = StyleSheet.create({
outerWrap: {
flex: 1,
backgroundColor: '#000',
},
})