Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
First, thank you for maintaining this package!
On Android, TextInput
fields inside a TrueSheet
are very difficult to focus when using Expo SDK 52 and React Native 0.76 with newArch enabled and disabled. Tapping the input often does not bring up the keyboard or focus the field, making it hard for users to enter text.
- This issue does not occur on iOS.
- On Expo SDK 53 and React Native 0.79, the issue is resolved and TextInput works as expected.
- Reverting the changes to RootSheetView.kt on this commit in a patch fixed the issue.
Library version
2.0.5
Environment info
info Fetching system and libraries information...
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M4
Memory: 109.89 MB / 16.00 GB
Shell:
version: "5.9"
path: /opt/homebrew/bin/zsh
Binaries:
Node:
version: 20.19.1
path: ~/.nvm/versions/node/v20.19.1/bin/node
Yarn: Not Found
npm:
version: 11.3.0
path: ~/.nvm/versions/node/v20.19.1/bin/npm
Watchman:
version: 2025.04.28.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/fk/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.24978.46.2431.13363775
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.15
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /Users/fk/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: ^18.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.9
wanted: 0.76.9
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Steps to reproduce
- Clone the minimal reproduction repo: https://github.com/fkrein1/true-sheet-android-bug
- Run the project on an Android device or emulator.
- Open the TrueSheet and try to tap on the
TextInput
field.
Environment
@lodev09/react-native-true-sheet
: 2.0.5- Expo SDK: 52
- React Native: 0.76
- newArch: true and false
- Platform: Android (device and simulator)
Expected behavior
Tapping the TextInput
should reliably focus the field and bring up the keyboard.
Actual behavior
Tapping the TextInput
often does nothing, or requires multiple taps to focus. The keyboard does not always appear.
Additional notes
Let me know if you need any more info or logs!
Thanks again for your work on this package!
Reproducible example repository
https://github.com/fkrein1/true-sheet-android-bug