-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
62 lines (58 loc) · 1.47 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { MovieMedia } from "@movie-web/providers";
import React, { useEffect, useRef, useState } from "react";
import { NavigationContainer } from "@react-navigation/native";
import {
ActivityIndicator,
Dimensions,
Image,
SafeAreaView,
ScrollView,
StatusBar,
Text,
TextInput,
TouchableOpacity,
View,
} from "react-native";
import { providers } from "./src/scraper";
import { getConfigurationTMDB, getFromTMDB } from "./src/tmdb";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Main from "./src/pages/main";
import Player from "./src/pages/player";
import Movie from "./src/pages/movie";
const Stack = createNativeStackNavigator();
function App(): React.JSX.Element {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
// animation: "slide_from_right",
headerShown: false,
contentStyle:{
backgroundColor:'rgb(10,10,18)'
}
}}
>
<Stack.Screen
name="Main"
component={Main}
options={{
orientation: "portrait",
}}
/>
<Stack.Screen
name="Movie"
component={Movie}
options={{
orientation: "portrait",
}}
/>
<Stack.Screen
name="Player"
component={Player}
options={{ orientation: "landscape", }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;