Skip to content

@clerk/expo: Return key adds a new line instead of submitting #8611

@csandman

Description

@csandman

Preliminary Checks

Reproduction

https://github.com/clerk/clerk-expo-quickstart/tree/main/NativeComponentQuickstart (this happens with the quickstart)

Publishable key

Shouldn't matter

Description

Steps to reproduce:

  1. Open an Expo app using the native AuthView
  2. Fill out email
  3. Press enter/return key

Expected behavior:

This should trigger the "Continue" action.

I'd also expect the return key to actually be the "Go" action, similar to the React Native enterKeyHint options: https://reactnative.dev/docs/textinput#enterkeyhint

Actual behavior:

On Android it added a new line to the email input. And because the input is only one line long, it appeared as though the email was just cleared/disappeared. I then continually got the "Identifier is invalid" error toast until I figured out that I still had text in the input. This is actually pretty hard to figure out how to recover from, because even when I restarted the app, the multi-line email was still populated.

On iOS, it just closes the keyboard, which is not nearly as bad, but still not as good as it could be.

Environment

Issue was on an Android 14 device
For the iPhone issue, it was on an iPhone 15 Pro on iOS 26.2

Metadata

Metadata

Assignees

Labels

needs-triageA ticket that needs to be triaged by a team member

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions