-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (28 loc) · 914 Bytes
/
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
// import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet } from "react-native";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import Trombinoscope from "./app/screens/Trombinoscope";
import TrombinoscopeDetails from "./app/screens/TrombinoscopeDetails";
const Stack = createStackNavigator();
const StackNavigator = () => (
<Stack.Navigator screenOptions={{}}>
<Stack.Screen name="Trombinoscope" component={Trombinoscope} />
<Stack.Screen
name="details"
component={TrombinoscopeDetails}
options={({ route }) => ({
title: route.params.member.name,
})}
/>
</Stack.Navigator>
);
export default function App() {
return (
<NavigationContainer>
<StackNavigator />
</NavigationContainer>
);
}
const styles = StyleSheet.create({});