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

(feature) preventDefault & stopPropagation #264

Open
nandorojo opened this issue Jan 23, 2025 · 3 comments
Open

(feature) preventDefault & stopPropagation #264

nandorojo opened this issue Jan 23, 2025 · 3 comments
Labels
bug: react-native A bug that originates in React Native feature Feature or technical request

Comments

@nandorojo
Copy link
Contributor

Describe the feature request

These features are currently unimplemented onClick. Adding this here as a feature request. Happy to help taking a look at an implementation.

For a synchronous preventDefault in TextInput's onChange, I assume we need an upstream PR in core.

@nandorojo nandorojo changed the title Feature request: preventDefault & stopPropagation (feature) preventDefault & stopPropagation Jan 23, 2025
@necolas
Copy link
Contributor

necolas commented Jan 23, 2025

The event system in RN is in the early stages of a rethink to take advantage of the new architecture and align with the web. Until then we can't implement sync events or these other features

cc @rubennorte

@necolas necolas added feature Feature or technical request bug: react-native A bug that originates in React Native labels Jan 23, 2025
@rubennorte
Copy link

The event system in RN is in the early stages of a rethink to take advantage of the new architecture and align with the web. Until then we can't implement sync events or these other features

cc @rubennorte

in this case, the problem isn't only the event system, but also the fact that we need events to be dispatched synchronously from the UI thread to JS so we can implement preventDefault properly. That might take even longer than the event system revamp.

@nandorojo
Copy link
Contributor Author

Thanks for the quick update. Happy to help / test anything when it’s in the early stages. The sync events will be an incredible addition to native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: react-native A bug that originates in React Native feature Feature or technical request
Projects
None yet
Development

No branches or pull requests

3 participants