Skip to content

Autoscroll on input field focus on android 15 is over-scrolling #240

@parasrvlife

Description

@parasrvlife

Environment

Library version: 7.0.2
OS version: Android 15

Affected platforms

  • Android
  • iOS

Current behavior

On Android 15, the auto-scroll overshoots when focusing on an input field. Based on my research, this issue is related to the new Edge-to-Edge UI enforcement introduced in Android 15.

Android 14 and older works find.

Expected behavior

On Android 15, the auto-scroll works same as Android 14 without over-scrolling.

As a temporary workaround, I’m currently doing:


import { useSafeAreaInsets } from 'react-native-safe-area-context';

...
const insets = useSafeAreaInsets();
return (
    <AvoidSoftInputView
      style={styles.container}
      avoidOffset={isAndroid15Plus && -insets.top}
    >
   ...
   </AvoidSoftInputView>
)

this fixes the problem but needs a permanent fix for this

Also I have added react-native-edge-to-edge, but that also didn't fix this.

Attachment.mov

Reproduction

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds repro linkNo reproduction link provided

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions