в общем я сделал так и все хорошо, но осталась еще одна пробелма
import React from "react";
import {
View,
Text,
TextInput,
StyleSheet,
Image,
TouchableOpacity,
Platform,
KeyboardAvoidingView,
TouchableWithoutFeedback,
Keyboard,
} from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import DarkButton from "../../../../shared/ui/Button/DarkButton";
import { useNavigation } from "@react-navigation/native";
import { MaterialIcons } from "@expo/vector-icons";
export default function RegistrationClient() {
const insets = useSafeAreaInsets();
const navigation = useNavigation();
const handleGoBack = () => {
navigation.goBack();
};
return (
<View style={[styles.container, { paddingTop: insets.top }]}>
<TouchableOpacity onPress={handleGoBack} style={{ marginLeft: 20 }}>
<View style={{ alignItems: "center", width: "100%", flex: 1 }}>
<Image
style={styles.image}
source={require("../../../../assets/logo.png")}
/>
{Войдите или \n зарегистрируйтесь}
<Text
style={{
fontSize: 12,
fontWeight: 300,
maxWidth: 350,
textAlign: "center",
}}
>
Нажимая на кнопку, вы даете свое согласие на{" "}
<Text style={{ fontWeight: "500" }}>
обработку персональных данных
, соглашаетесь с{" "}
<Text style={{ fontWeight: "500" }}>
политикой конфиденциальности и пользовательским соглашением
<Text style={{ fontSize: 14, fontWeight: "400" }}>
Связаться с поддержкой
<Text style={{ fontSize: 10, fontWeight: "400" }}>
Версия приложения 1.01
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
},
image: {
marginTop: 80,
width: 169,
height: 162,
},
title: {
fontSize: 20,
textAlign: "center",
},
form: {
alignItems: "center",
width: "100%",
paddingTop: 15,
paddingHorizontal: 15, // Добавьте отступы по бокам
gap: 15,
},
input: {
color: "#2A2A2A",
height: 50,
borderColor: "#9D9D9D",
borderRadius: 12,
borderWidth: 1,
paddingHorizontal: 10,
width: "100%", // input занимает всю ширину формы
},
downText: {
gap: 15,
alignItems: "center",
marginBottom: 70,
},
});
Теперь когда я открываю клавиатуру, то текст "связаться с поддержкой" и "версия приложение" поднимаются над клавиатурой и соответственно налазят на другой текст. Как можно сделать так, чтобы текст и дальше оставался под клавиатурой?