{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2679","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2679/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2679/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2679/events","html_url":"https://github.com/facebook/react-native/issues/2679","id":106405930,"number":2679,"title":"[package][android] how to publish custom modules for android.","user":{"login":"chirag04","id":954063,"avatar_url":"https://avatars.githubusercontent.com/u/954063?v=3","gravatar_id":"","url":"https://api.github.com/users/chirag04","html_url":"https://github.com/chirag04","followers_url":"https://api.github.com/users/chirag04/followers","following_url":"https://api.github.com/users/chirag04/following{/other_user}","gists_url":"https://api.github.com/users/chirag04/gists{/gist_id}","starred_url":"https://api.github.com/users/chirag04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirag04/subscriptions","organizations_url":"https://api.github.com/users/chirag04/orgs","repos_url":"https://api.github.com/users/chirag04/repos","events_url":"https://api.github.com/users/chirag04/events{/privacy}","received_events_url":"https://api.github.com/users/chirag04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-14T18:55:34Z","updated_at":"2015-09-14T20:34:41Z","closed_at":null,"body":"Currently npm and cocopod is just for publishing custom mdules for ios. Let's document the best way for android also.\r\n\r\nkeeping this as a tracking issue for the known issue(http://facebook.github.io/react-native/docs/known-issues.html#content)\r\n\r\n\r\ncc @brentvatne @ide @mkonicek "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/140198303","html_url":"https://github.com/facebook/react-native/issues/2679#issuecomment-140198303","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2679","id":140198303,"user":{"login":"chirag04","id":954063,"avatar_url":"https://avatars.githubusercontent.com/u/954063?v=3","gravatar_id":"","url":"https://api.github.com/users/chirag04","html_url":"https://github.com/chirag04","followers_url":"https://api.github.com/users/chirag04/followers","following_url":"https://api.github.com/users/chirag04/following{/other_user}","gists_url":"https://api.github.com/users/chirag04/gists{/gist_id}","starred_url":"https://api.github.com/users/chirag04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirag04/subscriptions","organizations_url":"https://api.github.com/users/chirag04/orgs","repos_url":"https://api.github.com/users/chirag04/repos","events_url":"https://api.github.com/users/chirag04/events{/privacy}","received_events_url":"https://api.github.com/users/chirag04/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T20:34:40Z","updated_at":"2015-09-14T20:34:40Z","body":"I see what you mean and def agree to it. I just published react-native-mail and tried to npm install and use it in a project.\r\n\r\n\r\nHere is what i had to do:\r\n1) in android -> app -> build.gradle add ``compile project(':RNMail')`` as dependency.\r\n2) in android -> settings.gradle -> add RNMail like this:\r\n```\r\nrootProject.name = 'AwesomeProject'\r\n\r\ninclude ':RNMail', ':app'\r\n\r\nproject(':RNMail').projectDir = new File('/Users/chirag/Desktop/AwesomeProject/node_modules/react-native-mail/android')\r\n```\r\n\r\n\r\nSeems like npm is a good option. I couldn't get relative path to work here though.\r\n\r\ncc @ide  @foghina "}}