{"action":"created","issue":{"url":"https://api.github.com/repos/necolas/react-native-web/issues/221","repository_url":"https://api.github.com/repos/necolas/react-native-web","labels_url":"https://api.github.com/repos/necolas/react-native-web/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/necolas/react-native-web/issues/221/comments","events_url":"https://api.github.com/repos/necolas/react-native-web/issues/221/events","html_url":"https://github.com/necolas/react-native-web/issues/221","id":182044175,"number":221,"title":"Jest throws error because `boxShadow`","user":{"login":"sospedra","id":3116899,"avatar_url":"https://avatars.githubusercontent.com/u/3116899?v=3","gravatar_id":"","url":"https://api.github.com/users/sospedra","html_url":"https://github.com/sospedra","followers_url":"https://api.github.com/users/sospedra/followers","following_url":"https://api.github.com/users/sospedra/following{/other_user}","gists_url":"https://api.github.com/users/sospedra/gists{/gist_id}","starred_url":"https://api.github.com/users/sospedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sospedra/subscriptions","organizations_url":"https://api.github.com/users/sospedra/orgs","repos_url":"https://api.github.com/users/sospedra/repos","events_url":"https://api.github.com/users/sospedra/events{/privacy}","received_events_url":"https://api.github.com/users/sospedra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-10T15:27:51Z","updated_at":"2016-10-11T09:22:34Z","closed_at":null,"body":"**What is the current behavior?**\r\n\r\nWhen running tests with Jest the following error is thrown:\r\n\r\n`Invariant Violation: \"boxShadow\" is not a valid style property`\r\n\r\n**What is the expected behaviour?**\r\n\r\nMy thought is that the alias that we are doing through webpack shall be done for Jest also.\r\n\r\n    \"alias\": {\r\n        \"react-native\": \"react-native-web\"\r\n    }\r\n\r\nBut maybe I'm completely wrong.\r\n\r\n**Steps to reproduce**\r\n\r\n1. Create the very basic example for react-native-web\r\n2. Add `boxShadow` to any `View`\r\n3. [Setup and run Jest for RN](https://facebook.github.io/jest/docs/tutorial-react-native.html)\r\n\r\n**Environment (include versions)**\r\n\r\nOS: MacOS Sierra 10.12\r\nDevice: MacBook Pro\r\nBrowser: Chrome 53\r\nReact Native for Web (version): 0.0.45\r\nReact (version): 15.3.2\r\n"},"comment":{"url":"https://api.github.com/repos/necolas/react-native-web/issues/comments/252857890","html_url":"https://github.com/necolas/react-native-web/issues/221#issuecomment-252857890","issue_url":"https://api.github.com/repos/necolas/react-native-web/issues/221","id":252857890,"user":{"login":"sospedra","id":3116899,"avatar_url":"https://avatars.githubusercontent.com/u/3116899?v=3","gravatar_id":"","url":"https://api.github.com/users/sospedra","html_url":"https://github.com/sospedra","followers_url":"https://api.github.com/users/sospedra/followers","following_url":"https://api.github.com/users/sospedra/following{/other_user}","gists_url":"https://api.github.com/users/sospedra/gists{/gist_id}","starred_url":"https://api.github.com/users/sospedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sospedra/subscriptions","organizations_url":"https://api.github.com/users/sospedra/orgs","repos_url":"https://api.github.com/users/sospedra/repos","events_url":"https://api.github.com/users/sospedra/events{/privacy}","received_events_url":"https://api.github.com/users/sospedra/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T09:22:34Z","updated_at":"2016-10-11T09:22:34Z","body":"@MoOx I tried your setup and I'm having the same error that I linked: \r\n`Invariant Violation: ReactCompositeComponent: injectEnvironment() can only be called once.`\r\n\r\nI'm planning to don't use RNW while I wait for React 15.4.0 -- which is supposed will fix the issue -- because I didn't found a single workaround that worked.\r\n\r\nMay can I ask which version of React are you using?"}}
{"actor":{"display_login":"sospedra"}}