-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ability to render Touchable as <button> on web #847
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
Comments
This is an intentional decision referenced in the documentation. |
@dcalhoun thank you, missed that part |
@kirill-kruchkov @dcalhoun I would like to re-open this issue. It would be really nice, if we have the ability to render i.e. There is a workaround for the flexbox issue with the |
@efoken I'd recommend opening a new issue specifically outlining the details behind your need for a |
Uh oh!
There was an error while loading. Please reload this page.
A bug
Button and Touchable components render as
<div>
s though from #391 I can see that ifaccessibilityRole=button
then it should render as<button>
.Demo repo
https://github.com/kirill-kruchkov/react-native-web-button-demo (please see
TouchableHighlight
usage insrc/Home.js
).What is the expected behavior?
Render Touchables with
accessibilityRole=button
as<button>
on web.The text was updated successfully, but these errors were encountered: