currect edit profile button

This commit is contained in:
Jaanu423
2025-09-18 16:40:04 +05:30
parent c040840040
commit f7b9cb9190
5 changed files with 124 additions and 85 deletions
+28 -2
View File
@@ -9,12 +9,17 @@ import {
KeyboardAvoidingView,
Platform,
SafeAreaView,
TouchableOpacity,
} from "react-native";
import * as Keychain from "react-native-keychain";
import { CustomInput, CustomButton } from "../../components/common/Custom";
import colors from "../../components/colors";
import { useNavigation } from "@react-navigation/native";
import AppView from "../../components/AppView";
import Ionicons from "@react-native-vector-icons/ionicons";
const BecomeOrg = () => {
const navigation = useNavigation<any>();
const [bankAccountNumber, setBankAccountNumber] = useState("");
const [bankName, setBankName] = useState("");
const [branchCode, setBranchCode] = useState("");
@@ -58,6 +63,7 @@ const BecomeOrg = () => {
setBankAccountNumber("");
setBankName("");
setBranchCode("");
navigation.navigate("Home" as never);
} else {
Alert.alert("Error", result.message || "Failed to apply");
}
@@ -70,7 +76,14 @@ const BecomeOrg = () => {
};
return (
<SafeAreaView style={{ flex: 1, backgroundColor: colors.pastelPink }}>
<AppView barStyle="dark-content">
<View style={styles.header}>
<TouchableOpacity onPress={() => navigation.replace("Home" as never)} >
<Ionicons name="arrow-back" size={24} color={'#000'} />
</TouchableOpacity>
<Text style={styles.headerTitle}>User Profile</Text>
</View>
<KeyboardAvoidingView
style={{ flex: 1 }}
behavior={Platform.OS === "ios" ? "padding" : undefined}
@@ -121,7 +134,7 @@ const BecomeOrg = () => {
)}
</ScrollView>
</KeyboardAvoidingView>
</SafeAreaView>
</AppView>
);
};
@@ -140,4 +153,17 @@ const styles = StyleSheet.create({
textAlign: "center",
color: colors.textDark,
},
header: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
padding: 16,
borderBottomLeftRadius: 20,
borderBottomRightRadius: 20,
},
headerTitle: {
fontSize: 22,
fontWeight: "700",
color: "#000"
},
});