When I use ScrollView the screen goes up and even scrolls but doesn't work. when I use KeyboardAvoidingView it has same issue. What is the problem?
export default function AuthLayout({ children }) {
const dismissKeyboard = () => {
Keyboard.dismiss();
};
return (
<ScrollView style={{ flexGrow: 1 }}>
<TouchableWithoutFeedback
style={{ flex: 1 }}
onPress={dismissKeyboard}
disabled={Platform.OS === "web"}
>
<SAuthLayout>{children}</SAuthLayout>
</TouchableWithoutFeedback>
</ScrollView>
);
}
Screen shot of my app and the gray part below is the space that has the ScrollView:
