-
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.
Merge pull request #70 from atlp-rwanda/ft-favoriteDoctorSearch
Enhance Search Functionality with Result Count and No Results Feedback
- Loading branch information
Showing
11 changed files
with
742 additions
and
464 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
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", | ||
|
||
} | ||
|
||
}) |
Oops, something went wrong.