forked from react-native-tvos/TVInputDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (31 loc) · 774 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
38
/**
* Demo of TV input and focus APIs
*/
import React from 'react';
import {Provider as PaperProvider} from 'react-native-paper';
import {SafeAreaView} from 'react-native-safe-area-context';
import {TVThemeProvider, useTVTheme} from './src/common/TVTheme';
import Navigation from './src/navigation/Navigation';
const Container = () => {
const theme = useTVTheme();
const containerStyle = {
flex: 1,
backgroundColor: theme.colors.background,
};
return (
<SafeAreaView style={containerStyle}>
<PaperProvider theme={theme}>
<Navigation />
</PaperProvider>
</SafeAreaView>
);
};
const App = () => {
return (
<TVThemeProvider>
<Container />
</TVThemeProvider>
);
};
App.title = 'Test';
export default App;