Skip to content

Conversation

yosr-fourati
Copy link

@yosr-fourati yosr-fourati commented Apr 19, 2023

Replace the View with KeyboardAvoidingView:

return (
  <SafeAreaView style={{ backgroundColor: COLORS.white, flex: 1 }}>
    <KeyboardAvoidingView
      behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
      style={{ flex: 1 }}
      contentContainerStyle={{ flexGrow: 1 }}
    >
      <ScrollView
        contentContainerStyle={{ paddingTop: 50, paddingHorizontal: 20 }}
      >
        {/* ... */}
      </ScrollView>
    </KeyboardAvoidingView>
  </SafeAreaView>
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant