Skip to content

KeyboardAwareScrollView not working on Android #3729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 4 tasks
EvgenMart opened this issue May 14, 2025 · 1 comment
Closed
1 of 4 tasks

KeyboardAwareScrollView not working on Android #3729

EvgenMart opened this issue May 14, 2025 · 1 comment
Labels
bug a bug in one of the components

Comments

@EvgenMart
Copy link

EvgenMart commented May 14, 2025

Description

When using <KeyboardAwareScrollView> from react-native-ui-lib on Android (Expo SDK 52, React Native 0.76.6, RNUILib 7.20.3), the keyboard-aware behavior does not work: the view does not scroll to keep inputs visible, and inputs at the bottom remain hidden behind the keyboard.

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

  1. Create a new Expo project (SDK 52).

  2. Install [email protected] and its peer dependencies (react-native-gesture-handler, react-native-reanimated, react-native-safe-area-context).

  3. In App.js, import and render:

import 'react-native-gesture-handler';
import React from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { View, TextField, Incubator } from 'react-native-ui-lib';

const { KeyboardAwareScrollView } = Incubator;

export default function App() {
  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <KeyboardAwareScrollView contentContainerStyle={{ flexGrow: 1, padding: 20 }}>
        <View flex>
          <TextField
            onChangeText={handleChange('addressLine1')}
            value={values.addressLine1}
          />
          <TextField
            onChangeText={handleChange('addressLine2')}
            value={values.addressLine2}
          />
          <TextField
            onChangeText={handleChange('addressLine3')}
            value={values.addressLine3}
          />
          <TextField
            onChangeText={handleChange('addressLine4')}
            value={values.addressLine4}
          />
          <TextField
            onChangeText={handleChange('addressLine5')}
            value={values.addressLine5}
          />
          <TextField
            onChangeText={handleChange('addressLine6')}
            value={values.addressLine6}
          />
        </View>
      </KeyboardAwareScrollView>
    </GestureHandlerRootView>
  );
}

Screenshots/Video

IMG_3201.MOV

Environment
Expo SDK: 52.0.24
React Native: 0.76.6
react-native-ui-lib: 7.20.3
react-native-gesture-handler: 2.x
react-native-reanimated: 3.x
react-native-safe-area-context: 4.x

Affected platforms
Android

@EvgenMart EvgenMart added the bug a bug in one of the components label May 14, 2025
@EvgenMart
Copy link
Author

Fix this problem by setting android:windowSoftInputMode to "adjustPan".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

1 participant