project setup

This commit is contained in:
Sone
2025-11-02 10:08:56 +01:00
commit 568838003e
174 changed files with 27100 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import { View, Text } from "react-native";
interface MessageDisplayProps {
message: string;
type: "error" | "success";
}
export const MessageDisplay = ({ message, type }: MessageDisplayProps) => {
if (!message) return null;
const backgroundColor =
type === "error" ? "rgba(255,0,0,0.1)" : "rgba(0,255,0,0.1)";
const textColor = type === "error" ? "#F83434" : "#22C927";
return (
<View
style={{
marginBottom: 16,
padding: 10,
backgroundColor,
borderRadius: 4,
}}
>
<Text style={{ color: textColor }}>{message}</Text>
</View>
);
};