{"action":"closed","issue":{"url":"https://api.github.com/repos/necolas/react-native-web/issues/895","repository_url":"https://api.github.com/repos/necolas/react-native-web","labels_url":"https://api.github.com/repos/necolas/react-native-web/issues/895/labels{/name}","comments_url":"https://api.github.com/repos/necolas/react-native-web/issues/895/comments","events_url":"https://api.github.com/repos/necolas/react-native-web/issues/895/events","html_url":"https://github.com/necolas/react-native-web/issues/895","id":314392518,"number":895,"title":"RNW createElement - a11yComponent can conflict with passed element","user":{"login":"comp615","id":542149,"avatar_url":"https://avatars1.githubusercontent.com/u/542149?v=4","gravatar_id":"","url":"https://api.github.com/users/comp615","html_url":"https://github.com/comp615","followers_url":"https://api.github.com/users/comp615/followers","following_url":"https://api.github.com/users/comp615/following{/other_user}","gists_url":"https://api.github.com/users/comp615/gists{/gist_id}","starred_url":"https://api.github.com/users/comp615/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comp615/subscriptions","organizations_url":"https://api.github.com/users/comp615/orgs","repos_url":"https://api.github.com/users/comp615/repos","events_url":"https://api.github.com/users/comp615/events{/privacy}","received_events_url":"https://api.github.com/users/comp615/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-15T07:19:55Z","updated_at":"2018-04-15T22:26:57Z","closed_at":"2018-04-15T22:26:57Z","author_association":"CONTRIBUTOR","body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug?\r\n\r\n**What is the current behavior?**\r\nWhen using RNW in conjunction with other libraries, it's sometimes necessary to use createElement on the 3rd party component to conform them to RNW styles. Right now, if RNW detects a11y props, it will [ignore the passed component](https://github.com/necolas/react-native-web/blob/a53372ceb3a5ce9707e7a8a60139434025df5722/packages/react-native-web/src/exports/createElement/index.js#L87) and use it's own tags instead, sometimes leading to unexpected behavior.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce**\r\n\r\nhttps://glitch.com/edit/#!/react-native-web-react-router-a11y-bug\r\n\r\n1. Use createElement on a component like Link from React-Router\r\n2. Pass accessibility props as part of the rendering (anything that triggers an accessibility component)\r\n3. Observe that the Link does not work (it's not used)\r\n\r\n**What is the expected behavior?**\r\n4. The passed component is used.\r\n\r\nIt might be right to overwrite it, but it might be helpful to have tools or guidance to handling mixing things properly. Thanks!"}}
{"actor":{"display_login":"necolas"}}