{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1436","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1436/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1436/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1436/events","html_url":"https://github.com/airbnb/enzyme/issues/1436","id":282520502,"number":1436,"title":"Create Adapter for React Native & React 16","user":{"login":"mcdankyl","id":34353984,"avatar_url":"https://avatars3.githubusercontent.com/u/34353984?v=4","gravatar_id":"","url":"https://api.github.com/users/mcdankyl","html_url":"https://github.com/mcdankyl","followers_url":"https://api.github.com/users/mcdankyl/followers","following_url":"https://api.github.com/users/mcdankyl/following{/other_user}","gists_url":"https://api.github.com/users/mcdankyl/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdankyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdankyl/subscriptions","organizations_url":"https://api.github.com/users/mcdankyl/orgs","repos_url":"https://api.github.com/users/mcdankyl/repos","events_url":"https://api.github.com/users/mcdankyl/events{/privacy}","received_events_url":"https://api.github.com/users/mcdankyl/received_events","type":"User","site_admin":false},"labels":[{"id":722037750,"url":"https://api.github.com/repos/airbnb/enzyme/labels/feature%20request","name":"feature request","color":"0a1ace","default":false},{"id":284995844,"url":"https://api.github.com/repos/airbnb/enzyme/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-12-15T19:12:11Z","updated_at":"2018-04-19T15:30:37Z","closed_at":null,"author_association":"NONE","body":"# Problem Statement\r\nCurrently we have no support for using a react native adapter with Enzyme. This is because the current adapters are built for react native web. \r\n\r\nAttempting to use mount with the current adapter will cause various issues from polluting the user's console with a ton of logs to inability to import necessary libraries.\r\n\r\nWhile this is the case you can get some testing done by filtering the logs and using jsdom.\r\n\r\nMost of the console error issues seem to be coming from the ReactDOM call for the React 16 adapter [here](https://github.com/airbnb/enzyme/blob/master/packages/enzyme-adapter-react-16/src/ReactSixteenAdapter.js#L173)\r\n\r\n# Purpose\r\nThe purpose of this ticket is to track work related to implementation and decisions regarding implementation of a react native enzyme adapter. \r\n\r\n# TODO\r\n1. Find an alternative to rendering with ReactDOM\r\n2. Decide best way to use the solution for (1) with existing adapters\r\n3. Decide whether we would like to do all necessary react native stubbing in the adapter a-la [react-native-mock-render](https://github.com/Root-App/react-native-mock-render), do a RYO implementation, or not take a firm stance to the native mocking\r\n3. Add unit tests to verify functionality\r\n4. Update Necessary Docs\r\n\r\n# Related Issues\r\nhttps://github.com/airbnb/enzyme/issues/1390\r\nhttps://github.com/airbnb/enzyme/issues/831\r\n"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/382779688","html_url":"https://github.com/airbnb/enzyme/issues/1436#issuecomment-382779688","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1436","id":382779688,"user":{"login":"mcdankyl","id":34353984,"avatar_url":"https://avatars3.githubusercontent.com/u/34353984?v=4","gravatar_id":"","url":"https://api.github.com/users/mcdankyl","html_url":"https://github.com/mcdankyl","followers_url":"https://api.github.com/users/mcdankyl/followers","following_url":"https://api.github.com/users/mcdankyl/following{/other_user}","gists_url":"https://api.github.com/users/mcdankyl/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdankyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdankyl/subscriptions","organizations_url":"https://api.github.com/users/mcdankyl/orgs","repos_url":"https://api.github.com/users/mcdankyl/repos","events_url":"https://api.github.com/users/mcdankyl/events{/privacy}","received_events_url":"https://api.github.com/users/mcdankyl/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T15:30:37Z","updated_at":"2018-04-19T15:30:37Z","author_association":"NONE","body":"@thefelpes No one is working on it from my end. We ended up using React Test Renderer and Shallow render directly."}}
{"actor":{"display_login":"mcdankyl"}}