-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(Favorite-Doctor) add search functionality , which shows number o…
…f founds, and new notification when you search do not match
- Loading branch information
1 parent
49aa0d0
commit 2c69035
Showing
6 changed files
with
250 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const defaultIcon=`<svg width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M13.0333 14.8035V3.45532" stroke="#246BFD" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M16.4311 11.3901L13.0329 14.804L9.63477 11.3901" stroke="#246BFD" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M4.75984 1.19409V12.5422" stroke="#246BFD" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M1.36133 4.60749L4.75948 1.1936L8.15762 4.60749" stroke="#246BFD" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import React,{ReactElement, useState} from 'react'; | ||
import { StyleSheet, Text, Image, View, TouchableHighlight, SafeAreaView, Button, Alert, Platform, StatusBar, Dimensions,TextInput, Pressable,ImageURISource} from 'react-native' | ||
import Typography from '@/constants/Typography'; | ||
import { SvgXml } from "react-native-svg" | ||
import { defaultIcon } from '@/assets/icons/Defaulticon'; | ||
|
||
interface foundDoctorProps{ | ||
count: number, | ||
|
||
} | ||
|
||
function FoundDoctorCount({ count }: foundDoctorProps) { | ||
const foundText=count===0 ?"0 found":`${count} founds` | ||
return ( | ||
<View style={styles.outer}> | ||
<View style={styles.leftView}> | ||
<View style={styles.countView}> | ||
<Text style={styles.countText} >{foundText}</Text> | ||
|
||
</View> | ||
|
||
</View> | ||
<View style={styles.RightView}> | ||
<View style={styles.defaultView}> | ||
<Text style={styles.defaultText}>Default</Text> | ||
|
||
</View> | ||
<Pressable style={styles.iconView}> | ||
<SvgXml xml={defaultIcon} /> | ||
|
||
</Pressable> | ||
|
||
</View> | ||
|
||
</View> | ||
); | ||
} | ||
|
||
export default FoundDoctorCount; | ||
const styles = StyleSheet.create({ | ||
outer: { | ||
width: "95%", | ||
height: 30, | ||
borderRadius: 10, | ||
zIndex: 1000, | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "space-between", | ||
alignItems:"center" | ||
|
||
}, | ||
leftView: { | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "space-between", | ||
alignItems:"center" | ||
|
||
}, | ||
RightView: { | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "space-between", | ||
alignItems: "center", | ||
width: "24%", | ||
}, | ||
countView: { | ||
|
||
|
||
}, | ||
countText: { | ||
color: "#212121", | ||
fontWeight: "bold", | ||
fontSize:16 | ||
|
||
}, | ||
foundView: { | ||
|
||
}, | ||
foundText: { | ||
|
||
}, | ||
defaultView: { | ||
|
||
}, | ||
defaultText: { | ||
color: "#246BFD", | ||
fontWeight: "bold", | ||
fontSize:16 | ||
|
||
}, | ||
iconView: { | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
|
||
} | ||
|
||
}) |
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,101 @@ | ||
import React,{ReactElement, useState} from 'react'; | ||
import { StyleSheet, Text, Image, View, TouchableHighlight, SafeAreaView, Button, Alert, Platform, StatusBar, Dimensions,TextInput, Pressable,ImageURISource} from 'react-native' | ||
import Typography from '@/constants/Typography'; | ||
import { SvgXml } from "react-native-svg" | ||
|
||
function NofoundComponent() { | ||
return ( | ||
<View style={styles.parent}> | ||
<View style={styles.outer}> | ||
<View style={styles.imageView}> | ||
<Image source={require("../assets/images/Doctors/notFound.png") } /> | ||
|
||
</View> | ||
<View style={styles.NotFound}> | ||
<Text style={styles.NotFoundText}>Not Found</Text> | ||
|
||
</View> | ||
<View style={styles.paragraph}> | ||
<View style={styles.sentenceView}><Text style={styles.sentenceText}>Sorry, the keyword you entered can not be</Text></View> | ||
<View style={styles.sentenceView}><Text style={styles.sentenceText}>found, please try again or search with </Text></View> | ||
<View style={styles.sentenceView}><Text style={styles.sentenceText}>another keyword</Text></View> | ||
|
||
</View> | ||
|
||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
export default NofoundComponent; | ||
const styles = StyleSheet.create({ | ||
parent: { | ||
width:"95%", | ||
height:500, | ||
borderRadius: 10, | ||
zIndex: 1000, | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
borderColor:"black" | ||
|
||
|
||
}, | ||
|
||
outer: { | ||
width: "95%", | ||
height:"75%", | ||
borderRadius: 10, | ||
zIndex: 1000, | ||
display: "flex", | ||
justifyContent: "space-between", | ||
alignItems: "center", | ||
borderColor:"red" | ||
|
||
|
||
|
||
}, | ||
imageView: { | ||
width:"100%", | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems:"center" | ||
}, | ||
NotFound: { | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width:"100%" | ||
|
||
|
||
}, | ||
NotFoundText: { | ||
color: "#212121", | ||
fontWeight: "bold", | ||
fontSize:18 | ||
|
||
}, | ||
paragraph: { | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width:"100%" | ||
|
||
}, | ||
sentenceView: { | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width:"100%" | ||
|
||
}, | ||
sentenceText: { | ||
color: "#212121", | ||
fontSize: 16, | ||
fontWeight:"300" | ||
|
||
} | ||
}) |
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