profile not done

This commit is contained in:
Abin Toppo
2025-09-15 10:50:58 +05:30
parent 0ff184c400
commit 29ac0307db
14 changed files with 1462 additions and 40 deletions
+50
View File
@@ -0,0 +1,50 @@
import React from "react";
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, ViewStyle } from "react-native";
type CustomButtonProps = {
title: string;
onPress: () => void;
backgroundColor?: string;
textColor?: string;
loading?: boolean;
style?: ViewStyle;
};
export default function CustomButton({
title,
onPress,
backgroundColor = "#6C63FF",
textColor = "#fff",
loading = false,
style,
}: CustomButtonProps) {
return (
<TouchableOpacity
style={[styles.button, { backgroundColor }, style]}
onPress={onPress}
disabled={loading}
activeOpacity={0.8}
>
{loading ? (
<ActivityIndicator color={textColor} />
) : (
<Text style={[styles.text, { color: textColor }]}>{title}</Text>
)}
</TouchableOpacity>
);
}
const styles = StyleSheet.create({
button: {
paddingVertical: 16,
paddingHorizontal: 20,
borderRadius: 12,
alignItems: "center",
justifyContent: "center",
marginVertical: 5,
},
text: {
fontSize: 16,
fontWeight: "bold",
},
});