{"id":27553023,"url":"https://github.com/ivanstan/react-native-nmea-library","last_synced_at":"2025-04-19T11:43:08.803Z","repository":{"id":57338707,"uuid":"160389144","full_name":"ivanstan/react-native-nmea-library","owner":"ivanstan","description":"React Native modul for accessing NMEA data on Android devices.","archived":false,"fork":false,"pushed_at":"2019-03-12T09:04:52.000Z","size":19,"stargazers_count":5,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T17:24:44.681Z","etag":null,"topics":["android","gps","native","nmea","react"],"latest_commit_sha":null,"homepage":"","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/ivanstan.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":"2018-12-04T16:45:01.000Z","updated_at":"2022-11-01T06:59:24.000Z","dependencies_parsed_at":"2022-09-07T11:50:48.177Z","dependency_job_id":null,"html_url":"https://github.com/ivanstan/react-native-nmea-library","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/ivanstan%2Freact-native-nmea-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanstan%2Freact-native-nmea-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanstan%2Freact-native-nmea-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanstan%2Freact-native-nmea-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanstan","download_url":"https://codeload.github.com/ivanstan/react-native-nmea-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685430,"owners_count":21310601,"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":["android","gps","native","nmea","react"],"created_at":"2025-04-19T11:43:08.223Z","updated_at":"2025-04-19T11:43:08.796Z","avatar_url":"https://github.com/ivanstan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-nmea-library\n\n## What is this odd place?\nIf by any chance you need a an ability to access NMEA data on Android \ndevices from React Native you can use NMEA library.\n\n* Supports Android only.\n\n## Getting started\n\n`$ npm install react-native-nmea-library --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-nmea-library`\n\n### Manual installation\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNNmeaLibraryPackage;` to the imports at the top of the file\n  - Add `new RNNmeaLibraryPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-nmea-library'\n  \tproject(':react-native-nmea-library').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-nmea-library/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-nmea-library')\n  \t```\n\n## Usage\n```javascript\nimport RNNmeaLibrary from 'react-native-nmea-library';\nimport {DeviceEventEmitter} from 'react-native';\n\n...\n\ncomponentDidMount()\n{\n    RNNmeaLibrary.start();\n    \n    DeviceEventEmitter.addListener('onNmeaReceive', (event) =\u003e {\n      console.log(event);\n      \n      // will output:\n      // { \n      //   timestamp: 1543940192000,\n      //   message: \"$GLGSV,3,1,11,72,62,303,,73,59,028,,74,59,264,,71,54,180,*6\" \n      // }\n    });\n}\n\ncomponentWillUnmount() {\n  RNNmeaLibrary.stop();\n}\n```\n\nWe recommend https://github.com/infusion/GPS.js for parsing NMEA sentances, and getting\nsatellite info.\n\n## Notice\nNMEA data is not available on emulators, you will have to use Android device\nfor testing and development.\n\n## Credits\n * Java Support: kaznovac@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanstan%2Freact-native-nmea-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanstan%2Freact-native-nmea-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanstan%2Freact-native-nmea-library/lists"}