-
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.
Showing
15 changed files
with
1,038 additions
and
619 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const token: string = process.env.EXPO_PUBLIC_TOKEN; | ||
|
||
export const createMeeting = async ({ token }: { token: string }): Promise<string> => { | ||
const res = await fetch(`https://api.videosdk.live/v2/rooms`, { | ||
method: "POST", | ||
headers: { | ||
authorization: `${token}`, | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify({}), | ||
}); | ||
|
||
const { roomId } = await res.json(); | ||
return roomId; | ||
} |
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
228 changes: 114 additions & 114 deletions
228
app/(app)/Appointments/VideoCallAppointment/VideoCallRinging.tsx
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 |
---|---|---|
@@ -1,122 +1,122 @@ | ||
import { | ||
StyleSheet, | ||
Text, | ||
View, | ||
ImageBackground, | ||
Image, | ||
Pressable, | ||
TouchableOpacity, | ||
} from "react-native"; | ||
import React from "react"; | ||
import { BackArrow, Speaker, Record, hungup,BigVideoIcon } from "@/components/Icons/Icons"; | ||
import { SvgXml } from "react-native-svg"; | ||
import Typography from "@/constants/Typography"; | ||
import { router } from "expo-router"; | ||
const VoiceCallRinging = () => { | ||
return ( | ||
<> | ||
<ImageBackground | ||
style={styles.Background} | ||
resizeMode="cover" | ||
source={require("@/assets/images/MariaBackground.png")} | ||
> | ||
<View style={styles.backArrow}> | ||
<TouchableOpacity onPress={()=> router.back()}> | ||
<SvgXml xml={BackArrow} /> | ||
</TouchableOpacity> | ||
|
||
</View> | ||
|
||
<View style={styles.middlePart}> | ||
<Image source={require("@/assets/images/Dr jenny.png")} style={{width: 200, height: 200, borderRadius: 100}}/> | ||
|
||
<View style={styles.middleText}> | ||
<Text style={[Typography.heading._3, { color: "#FFFFFF" }]}> | ||
Dr. Maria Foose | ||
</Text> | ||
<Text style={[Typography.medium.xLarge, { color: "#FFFFFF" }]}> | ||
Ringing... | ||
</Text> | ||
</View> | ||
</View> | ||
|
||
<View style={styles.Bottom}> | ||
<TouchableOpacity style={styles.speaker}> | ||
<SvgXml xml={Speaker} /> | ||
</TouchableOpacity> | ||
StyleSheet, | ||
Text, | ||
View, | ||
ImageBackground, | ||
Image, | ||
Pressable, | ||
TouchableOpacity, | ||
} from "react-native"; | ||
import React from "react"; | ||
import { BackArrow, Speaker, Record, hungup,BigVideoIcon } from "@/components/Icons/Icons"; | ||
import { SvgXml } from "react-native-svg"; | ||
import Typography from "@/constants/Typography"; | ||
import { router } from "expo-router"; | ||
const VoiceCallRinging = () => { | ||
return ( | ||
<> | ||
<ImageBackground | ||
style={styles.Background} | ||
resizeMode="cover" | ||
source={require("@/assets/images/MariaBackground.png")} | ||
> | ||
<View style={styles.backArrow}> | ||
<TouchableOpacity onPress={()=> router.back()}> | ||
<SvgXml xml={BackArrow} /> | ||
</TouchableOpacity> | ||
|
||
</View> | ||
|
||
<View style={styles.middlePart}> | ||
<Image source={require("@/assets/images/Dr jenny.png")} style={{width: 200, height: 200, borderRadius: 100}}/> | ||
|
||
<TouchableOpacity style={styles.Video} onPress={()=> router.push('(app)/Appointments/VideoCallAppointment/VideoCall')}> | ||
<SvgXml xml={BigVideoIcon} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity style={styles.Record}> | ||
<SvgXml xml={Record} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity style={styles.hangup} onPress={()=> router.push('(app)/Appointments/Review/ReviewBlankform')}> | ||
<SvgXml xml={hungup} /> | ||
</TouchableOpacity> | ||
<View style={styles.middleText}> | ||
<Text style={[Typography.heading._3, { color: "#FFFFFF" }]}> | ||
Dr. Maria Foose | ||
</Text> | ||
<Text style={[Typography.medium.xLarge, { color: "#FFFFFF" }]}> | ||
Ringing... | ||
</Text> | ||
</View> | ||
</ImageBackground> | ||
</> | ||
); | ||
}; | ||
|
||
export default VoiceCallRinging; | ||
|
||
const styles = StyleSheet.create({ | ||
speaker:{ | ||
</View> | ||
|
||
<View style={styles.Bottom}> | ||
<TouchableOpacity style={styles.speaker}> | ||
<SvgXml xml={Speaker} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity style={styles.Video} onPress={()=> router.push('(app)/Appointments/VideoCallAppointment/VideoCall')}> | ||
<SvgXml xml={BigVideoIcon} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity style={styles.Record}> | ||
<SvgXml xml={Record} /> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity style={styles.hangup} onPress={()=> router.push('(app)/Appointments/Review/ReviewBlankform')}> | ||
<SvgXml xml={hungup} /> | ||
</TouchableOpacity> | ||
</View> | ||
</ImageBackground> | ||
</> | ||
); | ||
}; | ||
|
||
export default VoiceCallRinging; | ||
|
||
const styles = StyleSheet.create({ | ||
speaker:{ | ||
backgroundColor: '#F0F0F0', | ||
borderRadius: 100, | ||
padding: 20, | ||
opacity: 0.6 | ||
}, | ||
Video:{ | ||
backgroundColor: '#F0F0F0', | ||
borderRadius: 100, | ||
padding: 20, | ||
opacity: 0.6 | ||
}, | ||
Video:{ | ||
backgroundColor: '#F0F0F0', | ||
borderRadius: 100, | ||
padding: 20, | ||
opacity: 0.6 | ||
}, | ||
Record:{ | ||
backgroundColor: '#F0F0F0', | ||
borderRadius: 100, | ||
padding: 23, | ||
opacity: 0.6 | ||
}, | ||
hangup:{ | ||
backgroundColor: '#F75555', | ||
borderRadius: 100, | ||
padding: 20, | ||
|
||
}, | ||
Bottom: { | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 20, | ||
}, | ||
middlePart: { | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 24, | ||
}, | ||
middleText: { | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 24, | ||
}, | ||
backArrow: { | ||
alignSelf: "flex-start", | ||
marginTop: "5%" | ||
}, | ||
Background: { | ||
flex: 1, | ||
justifyContent: "center", | ||
alignItems: "center", | ||
paddingTop: 24, | ||
paddingBottom: 48, | ||
paddingLeft: 24, | ||
paddingRight: 24, | ||
gap: 140, | ||
}, | ||
}); | ||
Record:{ | ||
backgroundColor: '#F0F0F0', | ||
borderRadius: 100, | ||
padding: 23, | ||
opacity: 0.6 | ||
}, | ||
hangup:{ | ||
backgroundColor: '#F75555', | ||
borderRadius: 100, | ||
padding: 20, | ||
|
||
}, | ||
Bottom: { | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 20, | ||
}, | ||
middlePart: { | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 24, | ||
}, | ||
middleText: { | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: 24, | ||
}, | ||
backArrow: { | ||
alignSelf: "flex-start", | ||
marginTop: "5%" | ||
}, | ||
Background: { | ||
flex: 1, | ||
justifyContent: "center", | ||
alignItems: "center", | ||
paddingTop: 24, | ||
paddingBottom: 48, | ||
paddingLeft: 24, | ||
paddingRight: 24, | ||
gap: 140, | ||
}, | ||
}); |
Oops, something went wrong.