{"action":"reopened","issue":{"url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/134","labels_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/134/comments","events_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/134/events","html_url":"https://github.com/leancloud/javascript-sdk/issues/134","id":103310390,"number":134,"title":"SDK 0.6.0 Unusable with React Native Packager","user":{"login":"Hybrid-Force","id":978994,"avatar_url":"https://avatars.githubusercontent.com/u/978994?v=3","gravatar_id":"","url":"https://api.github.com/users/Hybrid-Force","html_url":"https://github.com/Hybrid-Force","followers_url":"https://api.github.com/users/Hybrid-Force/followers","following_url":"https://api.github.com/users/Hybrid-Force/following{/other_user}","gists_url":"https://api.github.com/users/Hybrid-Force/gists{/gist_id}","starred_url":"https://api.github.com/users/Hybrid-Force/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hybrid-Force/subscriptions","organizations_url":"https://api.github.com/users/Hybrid-Force/orgs","repos_url":"https://api.github.com/users/Hybrid-Force/repos","events_url":"https://api.github.com/users/Hybrid-Force/events{/privacy}","received_events_url":"https://api.github.com/users/Hybrid-Force/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T16:23:17Z","updated_at":"2015-08-27T07:20:15Z","closed_at":null,"body":"## Description\r\n0.6.0版本兼容Browserify，利用package.json的`browser`配置可以在浏览器和Node环境中能各自加载适用于当前环境的模块。但是，在React Native环境中，JS SDK完全不能用了。\r\n\r\nReact Native的packager不检查package.json中的`browser`的配置选项，不能选择性的加载适用的模块。这导致React Native尝试加载错误的`xmlhttprequest`模块并出错且无法启动应用。\r\n\r\n0.6.0版本的这个错误比之前的[AsyncStorage的问题](issue #115)更加严重，AsyncStorage的问题只是导致不能持久话session，而这个问题导致应用无法启动。\r\n\r\n## Screenshot\r\n![image](https://cloud.githubusercontent.com/assets/978994/9499308/59722a1c-4c51-11e5-99f0-8ac4523e6763.png)"}}