{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/11024","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/11024/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/11024/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/11024/events","html_url":"https://github.com/facebook/react-native/issues/11024","id":190497393,"number":11024,"title":"React Native has several bugs on linux android...","user":{"login":"pdarde","id":20560302,"avatar_url":"https://avatars.githubusercontent.com/u/20560302?v=3","gravatar_id":"","url":"https://api.github.com/users/pdarde","html_url":"https://github.com/pdarde","followers_url":"https://api.github.com/users/pdarde/followers","following_url":"https://api.github.com/users/pdarde/following{/other_user}","gists_url":"https://api.github.com/users/pdarde/gists{/gist_id}","starred_url":"https://api.github.com/users/pdarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdarde/subscriptions","organizations_url":"https://api.github.com/users/pdarde/orgs","repos_url":"https://api.github.com/users/pdarde/repos","events_url":"https://api.github.com/users/pdarde/events{/privacy}","received_events_url":"https://api.github.com/users/pdarde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-19T13:49:57Z","updated_at":"2016-11-30T02:48:52Z","closed_at":"2016-11-30T02:48:52Z","body":"### Description\r\n\r\nI'm a react developer and some days ago I've started with react-native framework.  Following the getting start page, I faced a lot of bugs. \r\n\r\nAfter that, I found some errors. Searching for a solution on the web, I landed on a [stackoverflow page](http://stackoverflow.com/questions/38870710/error-could-not-get-batchedbridge-make-sure-your-bundle-is-packaged-properly) that instructs several steps in order to solve these issues. It's required to create an \"assets\" folder within the path \"MyProject/android/app/src/main/\" and run bash commands.\r\n\r\n### Reproduction\r\n\r\nThe bugs appear when I run \"react-native run-android\" after all environment set up.\r\n\r\nThe first one was related to the platform API, I had to change manually to android API 23.0.1.\r\n\r\nThe second one is a common bug that says \"Could not get BatchedBridge\".\r\n\r\n### Solution\r\n\r\nThese are the steps for a possible solution:\r\n\r\n1. Change the file \"MyProject/android/app/build.gradle\". Add the correct Android API supported version.\r\nUnder \"dependencies\" section I had to add the line \r\n\"compile \"com.android.support:appcompat-v7:23.0.1\"\r\n\r\n2. Create an \"assets\" folder under the \"MyProject/android/app/src/main/\"\r\n\r\n3. On terminal run the following commands..\r\nreact-native start > /dev/null 2>&1 &\r\ncurl \"http://localhost:8081/index.android.bundle?platform=android\" -o \"android/app/src/main/assets/index.android.bundle\"\r\n(cd android/ && ./gradlew assembleDebug)\r\n\r\nsometimes it's required run npm start.\r\n\r\nActually, I loved the framework, but the documentation lacks that bug solutions and becomes the development work pain.\r\n\r\n### Additional Information\r\n\r\n* react-native-cli: 1.2.0\r\n* react-native: 0.37.0\r\n* Platform: Android API 23.0.1\r\n* Operating System: Linux Elementary 8 (Ubuntu LTS based)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/263767742","html_url":"https://github.com/facebook/react-native/issues/11024#issuecomment-263767742","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11024","id":263767742,"user":{"login":"pdarde","id":20560302,"avatar_url":"https://avatars.githubusercontent.com/u/20560302?v=3","gravatar_id":"","url":"https://api.github.com/users/pdarde","html_url":"https://github.com/pdarde","followers_url":"https://api.github.com/users/pdarde/followers","following_url":"https://api.github.com/users/pdarde/following{/other_user}","gists_url":"https://api.github.com/users/pdarde/gists{/gist_id}","starred_url":"https://api.github.com/users/pdarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdarde/subscriptions","organizations_url":"https://api.github.com/users/pdarde/orgs","repos_url":"https://api.github.com/users/pdarde/repos","events_url":"https://api.github.com/users/pdarde/events{/privacy}","received_events_url":"https://api.github.com/users/pdarde/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T02:48:52Z","updated_at":"2016-11-30T02:48:52Z","body":"Hey guys, after running some test, I found out that install watchman and increase my inotify watchers solve all problems. Also, it is not more required to do steps 1, 2, and 3. I opened a PR to suggest a little edition in the docs. Feel free do edit or reject it. [https://github.com/facebook/react-native/pull/11208](https://github.com/facebook/react-native/pull/11208).\r\n\r\nThanks for the help!"}}
{"actor":{"display_login":"pdarde"}}