-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6f7453
commit 14242a6
Showing
12 changed files
with
277 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import React, { Component } from 'react' | ||
import { | ||
StatusBar, | ||
SafeAreaView, | ||
ScrollView, | ||
Text, | ||
View, | ||
ImageBackground, | ||
TouchableOpacity, | ||
TouchableNativeFeedback | ||
} from 'react-native' | ||
import { connect } from 'react-redux' | ||
|
||
import { | ||
IconBack, | ||
IconBookmark, | ||
IconChat | ||
} from '../Themes/Svg' | ||
|
||
// Styles | ||
import styles from './Styles/DoctorDetailScreenStyle' | ||
import { Images } from '../Themes' | ||
import { apply } from '../Themes/Osmicsx' | ||
import { colors } from 'osmicsx' | ||
|
||
class DoctorDetailScreen extends Component { | ||
constructor (props) { | ||
super(props) | ||
|
||
this.state = { | ||
|
||
} | ||
} | ||
|
||
render () { | ||
return ( | ||
<SafeAreaView style={apply(["flex", "bg-white"])}> | ||
<StatusBar translucent={true} backgroundColor="transparent" barStyle="dark-content" /> | ||
|
||
<ScrollView style={apply("flex")} contentContainerStyle={apply("pb-7")}> | ||
<ImageBackground source={Images.detailDoctor} style={styles.imgHeader}> | ||
<View style={styles.imgHeaderRow}> | ||
<TouchableOpacity activeOpacity={1} onPress={() => this.props.navigation.goBack()}> | ||
<IconBack width={30} height={30} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity activeOpacity={1}> | ||
<IconBookmark width={30} height={30} /> | ||
</TouchableOpacity> | ||
</View> | ||
</ImageBackground> | ||
|
||
<View style={styles.content}> | ||
<Text style={styles.name}>dr. Gilang Segara Bening</Text> | ||
<View style={styles.infoWrapper}> | ||
<Text style={styles.info}>Heart</Text> | ||
<View style={styles.infoDot} /> | ||
<Text style={styles.info}>Persahabatan Hospital</Text> | ||
</View> | ||
|
||
<Text style={styles.contentText}>dr. Gilang is one of the best doctors in the Persahabatan Hospital. He has saved more than 1000 patients in the past 3 years. He has also received many awards from domestic and abroad as the best doctors. He is available on a private or schedule.</Text> | ||
|
||
<View style={styles.spec}> | ||
<View style={styles.specCol}> | ||
<Text style={styles.specTitle}>Experience</Text> | ||
<Text style={styles.specContent}>3 <Text style={styles.specHelper}>yr</Text></Text> | ||
</View> | ||
|
||
<View style={styles.specCol}> | ||
<Text style={styles.specTitle}>Patient</Text> | ||
<Text style={styles.specContent}>1221 <Text style={styles.specHelper}>ps</Text></Text> | ||
</View> | ||
|
||
<View style={[styles.specCol, apply("border-r-0")]}> | ||
<Text style={styles.specTitle}>Rating</Text> | ||
<Text style={styles.specContent}>5.0</Text> | ||
</View> | ||
</View> | ||
</View> | ||
</ScrollView> | ||
|
||
<View style={styles.footer}> | ||
<TouchableNativeFeedback | ||
onPress={() => alert("hello!")} | ||
background={TouchableNativeFeedback.Ripple("rgba(255,255,255, 0.25)")}> | ||
<View style={styles.btnChat}> | ||
<IconChat /> | ||
</View> | ||
</TouchableNativeFeedback> | ||
|
||
<TouchableNativeFeedback | ||
onPress={() => alert("hello!")} | ||
background={TouchableNativeFeedback.Ripple("rgba(255,255,255, 0.25)")}> | ||
<View style={styles.btnAppointment}> | ||
<Text style={styles.btnFooterLabel}>Make an Appointment</Text> | ||
</View> | ||
</TouchableNativeFeedback> | ||
</View> | ||
</SafeAreaView> | ||
) | ||
} | ||
} | ||
|
||
const mapStateToProps = (state) => { | ||
return { | ||
} | ||
} | ||
|
||
const mapDispatchToProps = (dispatch) => { | ||
return { | ||
} | ||
} | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(DoctorDetailScreen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import { connect } from '../../Themes/Osmicsx' | ||
|
||
export default connect({ | ||
imgHeader: [ | ||
"full", | ||
"h-s80", | ||
"pt-10" | ||
], | ||
imgHeaderRow: [ | ||
"full", | ||
"row", | ||
"px-10", | ||
"items-center", | ||
"justify-between" | ||
], | ||
content: [ | ||
"p-5", | ||
"pt-7" | ||
], | ||
name: [ | ||
"text-dark", | ||
"font-bold", | ||
"text-3xl", | ||
"mb-3" | ||
], | ||
infoWrapper: [ | ||
"full", | ||
"row", | ||
"items-center", | ||
"mb-5" | ||
], | ||
info: [ | ||
"text-gray-dark", | ||
"font-regular", | ||
"font-sm" | ||
], | ||
infoDot: [ | ||
"medium-dot", | ||
"bg-muted", | ||
"mx-2", | ||
"rounded-full" | ||
], | ||
contentText: [ | ||
"text-regular", | ||
"text-sm", | ||
"text-dark", | ||
"flex-wrap", | ||
"leading-6" | ||
], | ||
spec: [ | ||
"flex", | ||
"row", | ||
"items-center", | ||
"justify-center", | ||
"py-6" | ||
], | ||
specCol: [ | ||
"items-center", | ||
"border-r", | ||
"border-muted", | ||
"px-7" | ||
], | ||
specTitle: [ | ||
"font-bold", | ||
"text-dark", | ||
"text-base", | ||
"text-center", | ||
"mb-5" | ||
], | ||
specContent: [ | ||
"font-regular", | ||
"text-blue-native", | ||
"text-2xl" | ||
], | ||
specHelper: [ | ||
"font-regular", | ||
"text-muted", | ||
"text-sm" | ||
], | ||
footer: [ | ||
"shadow-lg", | ||
"full", | ||
"absolute", | ||
"row", | ||
"items-center", | ||
"justify-between", | ||
"bottom-0", | ||
"z-20", | ||
"p-5" | ||
], | ||
btnChat: [ | ||
"bg-blue-native", | ||
"w-56", | ||
"h-56", | ||
"items-center", | ||
"justify-center", | ||
"rounded-lg", | ||
"mr-4" | ||
], | ||
btnAppointment: [ | ||
"bg-green-native", | ||
"flex", | ||
"h-56", | ||
"items-center", | ||
"justify-center", | ||
"rounded-lg" | ||
], | ||
btnFooterLabel: [ | ||
"text-sm", | ||
"text-white", | ||
"font-regular", | ||
"text-center" | ||
] | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters