{"action":"created","issue":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/1834","repository_url":"https://api.github.com/repos/GeekyAnts/NativeBase","labels_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/1834/labels{/name}","comments_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/1834/comments","events_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/1834/events","html_url":"https://github.com/GeekyAnts/NativeBase/issues/1834","id":317565798,"node_id":"MDU6SXNzdWUzMTc1NjU3OTg=","number":1834,"title":"testing components with enzyme","user":{"login":"MrTinyByte","id":7695492,"node_id":"MDQ6VXNlcjc2OTU0OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/7695492?v=4","gravatar_id":"","url":"https://api.github.com/users/MrTinyByte","html_url":"https://github.com/MrTinyByte","followers_url":"https://api.github.com/users/MrTinyByte/followers","following_url":"https://api.github.com/users/MrTinyByte/following{/other_user}","gists_url":"https://api.github.com/users/MrTinyByte/gists{/gist_id}","starred_url":"https://api.github.com/users/MrTinyByte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrTinyByte/subscriptions","organizations_url":"https://api.github.com/users/MrTinyByte/orgs","repos_url":"https://api.github.com/users/MrTinyByte/repos","events_url":"https://api.github.com/users/MrTinyByte/events{/privacy}","received_events_url":"https://api.github.com/users/MrTinyByte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-25T10:19:56Z","updated_at":"2018-06-06T07:48:13Z","closed_at":null,"author_association":"NONE","body":"Hi guys, Thanks for great work in NativeBase. My project looks like this:\r\nreact-native 0.51.0\r\nnative-base 2.3.5\r\nemzyme 3.3.0\r\njest 20.0.4\r\n\r\nI'm having difficulty using enzyme to render my components.\r\nWhat I'm trying to achieve is to render a component, which has included a number of NativeBase components. I'm encountering several warnings for instance:\r\n\r\n`Warning: <Text /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`\r\n\r\nand\r\n\r\n`          Warning: React does not recognize the `allowFontScaling` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `allowfontscaling` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\r\n          in Text\r\n          in Text (at Text.js:30)\r\n          in Text\r\n          in Styled(Text)\r\n`\r\n\r\nMy guess is that enzyme was not able to determine correct environment and thinks we are in React.\r\nany hints what should I do to fix this?\r\n\r\n![image](https://user-images.githubusercontent.com/7695492/39240018-dc8bf58c-4897-11e8-9ca6-cb95c7a1eb4b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/comments/394974516","html_url":"https://github.com/GeekyAnts/NativeBase/issues/1834#issuecomment-394974516","issue_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/1834","id":394974516,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDk3NDUxNg==","user":{"login":"kurtogath","id":29205148,"node_id":"MDQ6VXNlcjI5MjA1MTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/29205148?v=4","gravatar_id":"","url":"https://api.github.com/users/kurtogath","html_url":"https://github.com/kurtogath","followers_url":"https://api.github.com/users/kurtogath/followers","following_url":"https://api.github.com/users/kurtogath/following{/other_user}","gists_url":"https://api.github.com/users/kurtogath/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtogath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtogath/subscriptions","organizations_url":"https://api.github.com/users/kurtogath/orgs","repos_url":"https://api.github.com/users/kurtogath/repos","events_url":"https://api.github.com/users/kurtogath/events{/privacy}","received_events_url":"https://api.github.com/users/kurtogath/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T07:48:13Z","updated_at":"2018-06-06T07:48:13Z","author_association":"NONE","body":"I solved this error adding the `dive()` method on the test as you can see in the next image. \r\n\r\n![zero](https://user-images.githubusercontent.com/29205148/41023345-7b642c3e-696c-11e8-9c60-66e6e0f93f93.PNG)\r\n\r\nThen in App i got this. \r\n\r\n![dos](https://user-images.githubusercontent.com/29205148/41023359-847b096e-696c-11e8-8a4e-8e82103bf334.PNG)\r\n\r\nThis worked for me, hope it hepls\r\n"}}
{"actor":{"display_login":"kurtogath"}}