@@ -15,21 +15,21 @@ import { MainServer } from './src/screens/setup/MainServer';
1515import { Main } from './src/screens/Main' ;
1616
1717import {
18- SafeAreaView ,
19- ScrollView ,
20- StatusBar ,
21- StyleSheet ,
22- Text ,
23- useColorScheme ,
24- View ,
18+ SafeAreaView ,
19+ ScrollView ,
20+ StatusBar ,
21+ StyleSheet ,
22+ Text ,
23+ useColorScheme ,
24+ View ,
2525} from 'react-native' ;
2626
2727import {
28- Colors ,
29- DebugInstructions ,
30- Header ,
31- LearnMoreLinks ,
32- ReloadInstructions ,
28+ Colors ,
29+ DebugInstructions ,
30+ Header ,
31+ LearnMoreLinks ,
32+ ReloadInstructions ,
3333} from 'react-native/Libraries/NewAppScreen' ;
3434import { Connect } from './src/screens/setup/Connect' ;
3535import Token from './src/lib/Token' ;
@@ -40,121 +40,129 @@ import { Initial } from './src/screens/Initial';
4040import { ShowInfo } from './src/screens/info/ShowInfo' ;
4141import { SeasonInfo } from './src/screens/info/SeasonInfo' ;
4242import { Search } from './src/screens/Search' ;
43+ import { Genre } from './src/screens/Genre' ;
4344
4445const Stack = createNativeStackNavigator ( ) ;
4546
4647const App : ( ) => Node = ( ) => {
47- const isDarkMode = true ; //useColorScheme() === 'dark';
48- const [ signedIn , setSignedIn ] = React . useState ( false ) ;
48+ const isDarkMode = true ; //useColorScheme() === 'dark';
49+ const [ signedIn , setSignedIn ] = React . useState ( false ) ;
4950
50- const backgroundStyle = {
51- backgroundColor : Colors . darker
52- } ;
51+ const backgroundStyle = {
52+ backgroundColor : Colors . darker
53+ } ;
5354
5455
55- return (
56- < NavigationContainer style = { { backgroundColor : Colors . darker } } >
57- < Stack . Navigator
58- initialRouteName = "Initial"
59- screenOptions = { {
60- cardStyle : backgroundStyle ,
61- headerStyle : { elevation : 0 } ,
62- unmountOnBlur : true ,
63- } }
64- unmountOnBlur = { true }
65- >
66- < Stack . Screen
67- name = "Initial"
68- component = { Initial }
69- options = { {
70- headerShown : false ,
71- } }
72- />
73- < Stack . Screen
74- name = "Main"
75- component = { Main }
76- options = { {
77- headerShown : false
78- } }
79- />
80- < Stack . Screen
81- name = "Search"
82- component = { Search }
83- options = { {
84- headerShown : false
85- } }
86- />
87- < Stack . Screen
88- name = "MainServer"
89- component = { MainServer }
90- options = { {
91- headerShown : false ,
92- } }
93- />
94- < Stack . Screen
95- name = "MovieInfo"
96- component = { MovieInfo }
97- options = { {
98- headerShown : false ,
99- } }
100- />
101- < Stack . Screen
102- name = "ShowInfo"
103- component = { ShowInfo }
104- options = { {
105- headerShown : false ,
106- } }
107- />
108- < Stack . Screen
109- name = "SeasonInfo"
110- component = { SeasonInfo }
111- options = { {
112- headerShown : false ,
113- } }
114- />
115- < Stack . Screen
116- name = "Player"
117- component = { Player }
118- options = { {
119- headerShown : false
120- } }
121- />
122- < Stack . Screen
123- name = "Connect"
124- component = { Connect }
125- options = { {
126- headerShown : false
127- } }
128- />
129- < Stack . Screen
130- name = "ContentServer"
131- component = { ContentServerSetup }
132- options = { {
133- headerShown : false
134- } }
135- />
136- </ Stack . Navigator >
137- </ NavigationContainer >
138- ) ;
56+ return (
57+ < NavigationContainer style = { { backgroundColor : Colors . darker } } >
58+ < Stack . Navigator
59+ initialRouteName = "Initial"
60+ screenOptions = { {
61+ cardStyle : backgroundStyle ,
62+ headerStyle : { elevation : 0 } ,
63+ unmountOnBlur : true ,
64+ } }
65+ unmountOnBlur = { true }
66+ >
67+ < Stack . Screen
68+ name = "Initial"
69+ component = { Initial }
70+ options = { {
71+ headerShown : false ,
72+ } }
73+ />
74+ < Stack . Screen
75+ name = "Main"
76+ component = { Main }
77+ options = { {
78+ headerShown : false
79+ } }
80+ />
81+ < Stack . Screen
82+ name = "Search"
83+ component = { Search }
84+ options = { {
85+ headerShown : false
86+ } }
87+ />
88+ < Stack . Screen
89+ name = "MainServer"
90+ component = { MainServer }
91+ options = { {
92+ headerShown : false ,
93+ } }
94+ />
95+ < Stack . Screen
96+ name = "MovieInfo"
97+ component = { MovieInfo }
98+ options = { {
99+ headerShown : false ,
100+ } }
101+ />
102+ < Stack . Screen
103+ name = "ShowInfo"
104+ component = { ShowInfo }
105+ options = { {
106+ headerShown : false ,
107+ } }
108+ />
109+ < Stack . Screen
110+ name = "SeasonInfo"
111+ component = { SeasonInfo }
112+ options = { {
113+ headerShown : false ,
114+ } }
115+ />
116+ < Stack . Screen
117+ name = "Player"
118+ component = { Player }
119+ options = { {
120+ headerShown : false
121+ } }
122+ />
123+ < Stack . Screen
124+ name = "Connect"
125+ component = { Connect }
126+ options = { {
127+ headerShown : false
128+ } }
129+ />
130+ < Stack . Screen
131+ name = "ContentServer"
132+ component = { ContentServerSetup }
133+ options = { {
134+ headerShown : false
135+ } }
136+ />
137+ < Stack . Screen
138+ name = "Genre"
139+ component = { Genre }
140+ options = { {
141+ headerShown : false
142+ } }
143+ />
144+ </ Stack . Navigator >
145+ </ NavigationContainer >
146+ ) ;
139147} ;
140148
141149const styles = StyleSheet . create ( {
142- sectionContainer : {
143- marginTop : 32 ,
144- paddingHorizontal : 24 ,
145- } ,
146- sectionTitle : {
147- fontSize : 24 ,
148- fontWeight : '600' ,
149- } ,
150- sectionDescription : {
151- marginTop : 8 ,
152- fontSize : 18 ,
153- fontWeight : '400' ,
154- } ,
155- highlight : {
156- fontWeight : '700' ,
157- } ,
150+ sectionContainer : {
151+ marginTop : 32 ,
152+ paddingHorizontal : 24 ,
153+ } ,
154+ sectionTitle : {
155+ fontSize : 24 ,
156+ fontWeight : '600' ,
157+ } ,
158+ sectionDescription : {
159+ marginTop : 8 ,
160+ fontSize : 18 ,
161+ fontWeight : '400' ,
162+ } ,
163+ highlight : {
164+ fontWeight : '700' ,
165+ } ,
158166} ) ;
159167
160168export default App ;
0 commit comments