{"comment":{"url":"https://api.github.com/repos/brentvatne/jsdom-jscore/comments/11292234","html_url":"https://github.com/brentvatne/jsdom-jscore/commit/3229fa6bf2048e68903a80cdcea940e5af0563f2#commitcomment-11292234","id":11292234,"user":{"login":"oveddan","id":891755,"avatar_url":"https://avatars.githubusercontent.com/u/891755?v=3","gravatar_id":"","url":"https://api.github.com/users/oveddan","html_url":"https://github.com/oveddan","followers_url":"https://api.github.com/users/oveddan/followers","following_url":"https://api.github.com/users/oveddan/following{/other_user}","gists_url":"https://api.github.com/users/oveddan/gists{/gist_id}","starred_url":"https://api.github.com/users/oveddan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oveddan/subscriptions","organizations_url":"https://api.github.com/users/oveddan/orgs","repos_url":"https://api.github.com/users/oveddan/repos","events_url":"https://api.github.com/users/oveddan/events{/privacy}","received_events_url":"https://api.github.com/users/oveddan/received_events","type":"User","site_admin":false},"position":13,"line":13,"path":"README.md","commit_id":"3229fa6bf2048e68903a80cdcea940e5af0563f2","created_at":"2015-05-20T19:59:44Z","updated_at":"2015-05-20T19:59:44Z","body":"Unfortunately the approach you did with d3, does not work with jquery, as we cannot require jQuery in a react-native environment:\r\nhttps://github.com/facebook/react-native/issues/1149\r\n\r\nWhat I tried to do was:\r\n\r\nvar html = '<html><body>This is the text</body></html>'\r\n\r\nvar $ = require('jQuery'),\r\n jsdom = require('jsdom-jscore');\r\n\r\njsdom.env(\r\n    html,\r\n    function (errors, window) {\r\n      $(window);\r\n    }\r\n  );\r\n\r\nBut the line requiring jquery breaks in both the chrome and safari debugger for react-native."}}