{"id":4510,"url":"https://github.com/lxsameer/react-native-geolocation-android","last_synced_at":"2025-10-23T20:27:32.548Z","repository":{"id":57337193,"uuid":"45918971","full_name":"lxsameer/react-native-geolocation-android","owner":"lxsameer","description":"Geolocation module for android","archived":false,"fork":false,"pushed_at":"2015-12-23T07:16:19.000Z","size":9,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:11:07.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lxsameer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-10T14:57:51.000Z","updated_at":"2024-09-09T01:58:56.000Z","dependencies_parsed_at":"2022-09-10T02:53:04.657Z","dependency_job_id":null,"html_url":"https://github.com/lxsameer/react-native-geolocation-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsameer%2Freact-native-geolocation-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsameer%2Freact-native-geolocation-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsameer%2Freact-native-geolocation-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsameer%2Freact-native-geolocation-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxsameer","download_url":"https://codeload.github.com/lxsameer/react-native-geolocation-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681562,"owners_count":21144707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:14.767Z","updated_at":"2025-10-23T20:27:32.482Z","avatar_url":"https://github.com/lxsameer.png","language":"Java","readme":"# react-native-geolocation-android\nSimple React Native Android module to use Android's geo location inside your app.\nThis module will be useful until the official RN support aren't released.\n\n### Installation\n\n```bash\nnpm install react-native-geolocation-android --save\n```\n\n### Add it to your android project\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':GeoLocation', ':app'\nproject(':GeoLocation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-geolocation-android')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':GeoLocation')\n}\n```\n\n* Register Module (in MainActivity.java)\n\n```java\nimport com.lxsameer.geolocation.ReacLocation;  // \u003c--- import\n\npublic class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {\n  ......\n\n  @Override\n  protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    mReactRootView = new ReactRootView(this);\n\n    mReactInstanceManager = ReactInstanceManager.builder()\n      .setApplication(getApplication())\n      .setBundleAssetName(\"index.android.bundle\")\n      .setJSMainModuleName(\"index.android\")\n      .addPackage(new MainReactPackage())\n      .addPackage(new ReactLocation()) // \u003c------ add this line to yout MainActivity class\n      .setUseDeveloperSupport(BuildConfig.DEBUG)\n      .setInitialLifecycleState(LifecycleState.RESUMED)\n      .build();\n\n    mReactRootView.startReactApplication(mReactInstanceManager, \"AndroidRNSample\", null);\n\n    setContentView(mReactRootView);\n  }\n\n  ......\n\n}\n```\n\n\n## License\nLGPLv2.1\n","funding_links":[],"categories":["Components"],"sub_categories":["Geolocation","System"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsameer%2Freact-native-geolocation-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxsameer%2Freact-native-geolocation-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsameer%2Freact-native-geolocation-android/lists"}