Skip to content
New issue

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

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

Already on GitHub? # to your account

native-base Input component loses focus immediately #49053

Open
tylerIams opened this issue Jan 29, 2025 · 1 comment
Open

native-base Input component loses focus immediately #49053

tylerIams opened this issue Jan 29, 2025 · 1 comment
Labels
Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@tylerIams
Copy link

tylerIams commented Jan 29, 2025

Description

As soon as you click into the Input component, focus goes away and you cannot type.

Steps to reproduce

  1. clone the repo: https://github.com/tylerIams/NewArchUpgradeIssueReproducer
  2. cd NewArchTestApp/
  3. npm install
  4. npx expo start --clear
  5. i to open on ios simulator
  6. You'll see an input box with placeholder "Enter text here" -- it doesn't work 😢 - click for focus and it unfocuses immediately

React Native Version

0.76.6

Affected Platforms

Runtime - iOS

Areas

Other (please specify) - not sure, general functionality

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 14.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 90.19 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: ~/.nvm/versions/node/v20.17.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.17.0/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: ^15.1.3
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.6
    wanted: 0.76.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.77.0 is now available (your project is running on v0.76.6).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.77.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.6&to=0.77.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Stacktrace or Logs

tyleriams@Tylers-MacBook-Pro NewArchTestApp % npx expo start --clear                     
Starting project at /Users/tyleriams/workspace/NewArchUpgradeIssueReproducer/NewArchTestApp
Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
The following packages should be updated for best compatibility with the installed expo version:
  react-native-svg@15.11.1 - expected version: 15.8.0
Your project may not work correctly until you install the expected versions of the packages.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █   █▄▄▀▄██ ▄▄▄▄▄ █
█ █   █ █ ▀▄ █▀█ ██ █   █ █
█ █▄▄▄█ █▀██▀▀█▀▄██ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄▀▄█ █▄█▄█▄▄▄▄▄▄▄█
█▄ █▀▄▄▄▀█▀▀▄▀█▄ ███ ▀▄▄ ▄█
█▀ ▀▀▀▄▄█▄█▀ ▄██ ▄▀ █▄  ▀██
█▀  ▄██▄██▀▄█▄▀▄▀▄▀▄▀▀▄ ▀██
███▄█  ▄ ▄▀▄█▀██▄▄▄█▄▀ ▀███
█▄▄█▄▄█▄▄  ▄▄▀█▄▄ ▄▄▄ ▀ ▄▄█
█ ▄▄▄▄▄ █▀█▀ ▄██▀ █▄█ ▀▀█▀█
█ █   █ █▄▄ █▄▀▄█▄▄ ▄▄▀   █
█ █▄▄▄█ █▀███▀█▀▄██▄▀█▀▀ ██
█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄████▄▄▄▄▄▄█

› Metro waiting on exp://192.168.4.42:8081
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Web is waiting on http://localhost:8081

› Using Expo Go
› Press s │ switch to development build

› Press a │ open Android
› Press i │ open iOS simulator
› Press w │ open web

› Press j │ open debugger
› Press r │ reload app
› Press m │ toggle menu
› shift+m │ more tools
› Press o │ open project code in your editor

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
Recrawled this watch 37 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/tyleriams/workspace/NewArchUpgradeIssueReproducer' ; watchman watch-project '/Users/tyleriams/workspace/NewArchUpgradeIssueReproducer'`

› Opening on iOS...
› Opening exp://192.168.4.42:8081 on iPhone SE (3rd generation)
› Press ? │ show all commands
Unable to resolve asset "./assets/images/icon.png" from "icon" in your app.json or app.config.js
iOS Bundled 5284ms App.js (1404 modules)
 (NOBRIDGE) LOG  Bridgeless mode is enabled
 INFO  
 💡 JavaScript logs will be removed from Metro in React Native 0.77! Please use React Native DevTools as your default tool. Tip: Type j in the terminal to open (requires Google Chrome or Microsoft Edge).
 (NOBRIDGE) WARN  In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app. [Component Stack]

Reproducer

https://github.com/tylerIams/NewArchUpgradeIssueReproducer

Screenshots and Videos

Image

@tylerIams tylerIams added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Jan 29, 2025
@cipolleschi
Copy link
Contributor

@tylerIams I see that you are using Expo and NativeBase. Can you open an issue in those repos first?

We don't believe that this is an issue of React Native core, as inputs work well for us. I suspect that the issue is that Native Base is not compatible with the New Architecture yet.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

2 participants