Newer
Older
import { View, Text, StyleSheet, Button,ScrollView} from "react-native";
import colors from '../../../colors'
import styled from "styled-components/native";
export default function Detail (props) {
const {route,navigation}=props
const goTo = () => navigation.navigate("stackMap");
<ScrollView
contentContainerStyle={{ alignItems: 'center' }}
style={{ flex: 1, width: '100%' }}
showsVerticalScrollIndicator={false}
>
<Text>{route.params.room.name}</Text>
<View style={styles.carousel} >
<Button onPress={goTo} title={`Go to maps`} />
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "azure",
alignItems: "center",
justifyContent: "center",
container2: {
flex: 1,
backgroundColor: "#F5F8FF",
alignItems: "center",
justifyContent: "center",
},