callstack / callstack/react-native-paper

TextInput autofocus is not opening keyboard on Android

Đang mở
#4,456 6 bình luận 3 reaction 1 người được giao Được @kamilkedzierski nhận Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

### Current behaviour
Trying to improve user experience by auto focusing to input and showing keyboard. On iOS everything works fine, but on Android two thinks are happening.

TextInput gets auto focused on Android but:
1) keyboard is not showing automatically, only after direct pressing text input
2) I have bottom sheet that is behind *modal with text input* and after pressing on TextInput to get the keyboard open the BottomSheet rises for no reason.

### Expected behaviour
When opening modal (TextInput initial) the TextInput is focused and keyboard is open (as on iOS)

### How to reproduce?
First case code example:
[code example on snack.expo.dev](https://snack.expo.dev/@jestemtrzcinska/react-native-paper-text-input-android)

### Preview
Second case preview:

2 case (2)

2 case (1)

### What have you tried so far?
update react-native-paper

### Your Environment

| software | version
| --------------------- | -------
| ios | 17.0
| android | 34
| react-native | ^0.73.6
| react-native-paper | ^5.12.3
| node | 18.18.0
| npm or yarn | 9.8.1
| expo sdk | x.x.x

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.