-
Notifications
You must be signed in to change notification settings - Fork 0
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 #165 from bounswe/mobile/hotfix
Mobile/hotfix
- Loading branch information
Showing
10 changed files
with
270 additions
and
315 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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
{"_bodyBlob": {"_data": {"__collector": [Object], "blobId": "80881ed4-3ce3-4155-838c-1936ec5d9d6f", "offset": 0, "size": 86}}, "_bodyInit": {"_data": {"__collector": [Object], "blobId": "80881ed4-3ce3-4155-838c-1936ec5d9d6f", "offset": 0, "size": 86}}, "bodyUsed": false, | ||
"headers": {"map": {"cache-control": "no-cache, no-store, max-age=0, must-revalidate", "connection": "keep-alive", "content-length": "86", | ||
"content-type": "application/json", "date": "Tue, 30 Apr 2024 17:23:37 GMT", "expires": "0", "pragma": "no-cache", "server": "nginx/1.25.5", "vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers", "x-content-type-options": "nosniff", "x-frame-options": | ||
"DENY", "x-xss-protection": "0"}}, "ok": false, "status": 401, "statusText": "", "type": "default", "url": "http://34.118.44.165/api/auth/login"} |
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,51 @@ | ||
import React from "react"; | ||
import { View, Text, Modal, StyleSheet } from "react-native"; | ||
import CustomButton from "./CustomButton"; | ||
|
||
const CustomModal = ({ visible, message, onClose }) => { | ||
return ( | ||
<Modal | ||
visible={visible} | ||
animationType="slide" | ||
transparent={true} | ||
onRequestClose={onClose} | ||
> | ||
<View style={styles.centeredView}> | ||
<View style={styles.modalView}> | ||
<Text style={styles.modalText}>{message}</Text> | ||
<CustomButton title="Return to Feed" onPress={onClose} /> | ||
</View> | ||
</View> | ||
</Modal> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
centeredView: { | ||
flex: 1, | ||
justifyContent: "center", | ||
alignItems: "center", | ||
marginTop: 22, | ||
backgroundColor: "rgba(0, 0, 0, 0.5)", | ||
}, | ||
modalView: { | ||
margin: 20, | ||
backgroundColor: "#111927", | ||
borderRadius: 20, | ||
padding: 35, | ||
alignItems: "center", | ||
shadowColor: "#000", | ||
shadowOpacity: 0.25, | ||
shadowRadius: 4, | ||
elevation: 5, | ||
}, | ||
modalText: { | ||
marginBottom: 15, | ||
textAlign: "center", | ||
color: "white", | ||
fontSize: 18, | ||
fontWeight: "bold", | ||
}, | ||
}); | ||
|
||
export default CustomModal; |
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
Oops, something went wrong.