-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
48 lines (46 loc) · 1.36 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
import "react-native-gesture-handler";
// React Native
import { Pressable } from "react-native";
// Navigation
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
// Screens
import LandingScreen from "./screens/LandingScreen";
import EpubReader from "./screens/EpubReaderScreen";
// Redux
import { Provider } from "react-redux";
import { store } from "./store/store";
// Expo Dev Client
import "expo-dev-client";
// Icons
import { Ionicons } from "@expo/vector-icons";
const Stack = createNativeStackNavigator();
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Landing Screen"
options={{ headerShown: false }}
component={LandingScreen}
/>
<Stack.Screen
name="ePub Reader"
options={{
headerTitleStyle: {
fontWeight: "bold",
},
headerRight: () => (
<Pressable onPress={() => {}}>
<Ionicons name="arrow-back" size={24} color="black" />
</Pressable>
),
}}
component={EpubReader}
/>
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}