api integration for joined user

This commit is contained in:
Jaanu423
2025-09-22 18:50:06 +05:30
parent ff8c0439f6
commit bcd41f81e6
12 changed files with 213 additions and 113 deletions
+1 -22
View File
@@ -19,7 +19,6 @@ import type { StackNavigationProp } from "@react-navigation/stack";
import { RootStackParamList } from "../navigation/AppNavigator";
import { CustomButton, CustomInput } from "../components/common/Custom";
import colors from "../components/colors";
import { useSelector } from "react-redux";
const theme = {
primary: "#111111",
@@ -42,8 +41,7 @@ export default function LoginScreen() {
const fade = useRef(new Animated.Value(0)).current;
const slide = useRef(new Animated.Value(24)).current;
const ctaScale = useRef(new Animated.Value(1)).current;
const user = useSelector((state: any) => state.user)
console.log("current user ----", user)
useEffect(() => {
Animated.parallel([
Animated.timing(fade, { toValue: 1, duration: 600, useNativeDriver: true }),
@@ -55,8 +53,6 @@ export default function LoginScreen() {
if (mobile.length === 10) {
setLoading(true);
try {
console.log("LOGIN_URL console:", LOGIN_URL, "mobile:", mobile);
const res = await axios.get(LOGIN_URL, {
params: { mobile },
});
@@ -89,23 +85,6 @@ export default function LoginScreen() {
}
};
const onPressIn = () =>
Animated.spring(ctaScale, {
toValue: 0.97,
useNativeDriver: true,
speed: 20,
bounciness: 0,
}).start();
const onPressOut = () =>
Animated.spring(ctaScale, {
toValue: 1,
useNativeDriver: true,
speed: 20,
bounciness: 6,
}).start();
return (
<KeyboardAvoidingView
style={styles.container}