I am new in React Native. I'm trying to make a view visibale when keybord is opened. It works with Android by default without KeybordAvoidingView. But on iOS nothing happens and my view under the keyboard. I've made simplify code example
I've tried to use KeyboarAvoidingView in a different parts of component with a defferent options of behavior.
Thanks in advance
const { height, width } = Dimensions.get("window");const paddingLeft = 20;const widthContent = 400;const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "white" }, top: { backgroundColor: "black", borderBottomLeftRadius: 75, overflow: "hidden" }, title: { left: paddingLeft, width: 305, fontStyle: "normal", fontWeight: "700", fontSize: 36, lineHeight: 44, color: "#FFFFFF" }, subtitle: { fontStyle: "normal", fontWeight: "600", fontSize: 24, lineHeight: 30, color: "#000000" }});export default function App() { return (<View style={styles.container}><View style={[ styles.top, { flex: 1, backgroundColor: "rgba(247, 101, 108, 1)" } ]}><View style={{ height: 0.41 * height }}><View style={{ position: "absolute", bottom: 60 }}><Text style={[styles.title]}>Welcome to </Text><Text style={[styles.title, { left: paddingLeft + 3 }]}>Ptn</Text></View></View></View><View style={{ flex: 1, minHeight: 180, backgroundColor: "rgba(247, 101, 108, 1)" }}><View style={{ flex: 1, backgroundColor: "white", borderTopRightRadius: 75 }}><View style={{ display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", marginTop: 40, width: widthContent, marginLeft: 29 }}><Text style={styles.subtitle}>Sign In</Text><View><Button /></View></View><KeyboardAvoidingView style={{ flex: 1, backgroundColor: "green" }} behavior="height" enabled><View style={{ width: 0.83 * width, marginLeft: 29, marginTop: 49 }}><TextInpit /><TextInpit /></View></KeyboardAvoidingView><View style={{ width: widthContent, display: "flex", flexDirection: "row", justifyContent: "flex-start", paddingLeft, paddingTop: 51 }}><Text>Do not have account?</Text></View></View></View></View> );}