forked from torrid-fish/dabus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBusDetailContainer.js
More file actions
50 lines (34 loc) · 1.23 KB
/
BusDetailContainer.js
File metadata and controls
50 lines (34 loc) · 1.23 KB
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
import React, {useState} from 'react';
import {SafeAreaView,Dimensions, StyleSheet,TouchableOpacity, TextInput, View, Text,Button,Switch} from 'react-native';
// import Animated from 'react-native-reanimated';
import BusDetailCard from './BusDetailCard';
import MapView from 'react-native-maps';
const screenWidth = Dimensions.get('window').width;
const screenHeight = Dimensions.get('window').height;
const BusDetailContainer = () => {
return (
<View >
{/* <Animated.ScrollView pagingEnabled style={styles.container}>
<BusDetailCard title={'PAGE 1 '} index={0} />
<BusDetailCard title={'PAGE 2'} index={1} />
</Animated.ScrollView> */}
<MapView initialRegion={{
latitude: 24.797119,
longitude: 120.994375,
latitudeDelta: 0.0461,
longitudeDelta: 0.0210,
}}
style={{position :"absolute",height: 1000,width: screenWidth}}/>
<View style = {{ zIndex:1,position : "absolute",top:screenHeight*0.6,}}>
<BusDetailCard/>
</View>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 0,
backgroundColor: '#fff',
},
});
export default BusDetailContainer;