Skip to content
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

useKeyboardAnimation reports incorrect values if androidNavigationBar.visible is leanback with expo-dev-client #256

Open
kirillzyusko opened this issue Oct 19, 2023 · 0 comments
Assignees
Labels
🤖 android Android specific 🐛 bug Something isn't working sponsor 💖 Someone pays money for the issue to be resolved 💸

Comments

@kirillzyusko
Copy link
Owner

kirillzyusko commented Oct 19, 2023

Describe the bug

useKeyboardAnimation and other hooks reports incorrect values if androidNavigationBar.visible is leanback with expo-dev-client on Android.

Code snippet

There is no code snippet, please see repo for reproducing.

Repo for reproducing

https://github.com/MarceloPrado/react-native-keyboard-controller-dev-client-repro

To Reproduce

  1. Ensure app.json has androidNavigationBar.visible set to leanback.
  2. Trigger a new development build: eas build --profile development --platform android. 2.1. You'll need to have the EAS CLI installed and be logged in. It'll ask you to create a new project.
  3. Install the app on a physical device and open the "Aware scroll view sticky footer" example.
  4. Open/Close the input a few times, and notice how the footer position is not updated correctly.
  5. Now, remove the androidNavigationBar from app.json and re-run your app with yarn android -c. Notice the issue doesn't happen anymore.

Expected behavior

Footer position should be correct 🙂

Screenshots

Can be found in reproduction repro.

Smartphone (please complete the following information):

  • Desktop OS: MacOs 13.5.1
  • Device: Pixel 3a XL
  • OS: Android 12
  • RN version: 0.71.3, 0.72.4
  • RN architecture: old
  • JS engine: Hermes
  • Library version: 1.8.0

Additional context

Not sure, but maybe problem happens because expo is using deprecated window flags.

Seems like problem is not happening in release variant. Maybe shift between the launcher UX and app’s activity causes some issues 🤷‍♂️

@kirillzyusko kirillzyusko added 🐛 bug Something isn't working 🤖 android Android specific labels Oct 19, 2023
@kirillzyusko kirillzyusko self-assigned this Oct 19, 2023
@kirillzyusko kirillzyusko added the sponsor 💖 Someone pays money for the issue to be resolved 💸 label Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Android specific 🐛 bug Something isn't working sponsor 💖 Someone pays money for the issue to be resolved 💸
Projects
None yet
Development

No branches or pull requests

1 participant