{"id":4509,"url":"https://github.com/eddieowens/react-native-boundary","last_synced_at":"2026-01-25T17:35:46.915Z","repository":{"id":57335840,"uuid":"140670134","full_name":"eddieowens/react-native-boundary","owner":"eddieowens","description":"Native implementation of geofencing/region monitoring","archived":false,"fork":false,"pushed_at":"2020-05-10T16:20:02.000Z","size":202,"stargazers_count":122,"open_issues_count":33,"forks_count":72,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-03T21:49:46.415Z","etag":null,"topics":["geofencing","react-native","region-monitoring"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddieowens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-12T06:22:19.000Z","updated_at":"2025-07-15T15:48:07.000Z","dependencies_parsed_at":"2022-09-14T19:12:05.406Z","dependency_job_id":null,"html_url":"https://github.com/eddieowens/react-native-boundary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eddieowens/react-native-boundary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieowens%2Freact-native-boundary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieowens%2Freact-native-boundary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieowens%2Freact-native-boundary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieowens%2Freact-native-boundary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddieowens","download_url":"https://codeload.github.com/eddieowens/react-native-boundary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieowens%2Freact-native-boundary/sbom","scorecard":{"id":366141,"data":{"date":"2025-08-11","repo":{"name":"github.com/eddieowens/react-native-boundary","commit":"03fecc1f75b73f4ea51a87036f87a97c5904ade7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":5,"reason":"Found 8/15 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T11:53:05.965Z","repository_id":57335840,"created_at":"2025-08-18T11:53:05.965Z","updated_at":"2025-08-18T11:53:05.965Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28756011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["geofencing","react-native","region-monitoring"],"created_at":"2024-01-05T20:17:14.741Z","updated_at":"2026-01-25T17:35:46.872Z","avatar_url":"https://github.com/eddieowens.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Geolocation"],"readme":"\n# react-native-boundary\n\nA simple, native, and efficient geofencing/region monitoring react native library for both iOS and android. \n\n## Usage\n```javascript\nimport Boundary, {Events} from 'react-native-boundary';\n\nclass MyComponent extends Class {\n  componentWillMount() {\n    Boundary.add({\n      lat: 34.017714,\n      lng: -118.499033,\n      radius: 50, // in meters\n      id: \"Chipotle\",\n    })\n      .then(() =\u003e console.log(\"success!\"))\n      .catch(e =\u003e console.error(\"error :(\", e));\n   \n    Boundary.on(Events.ENTER, id =\u003e {\n      // Prints 'Get out of my Chipotle!!'\n      console.log(`Get out of my ${id}!!`);\n    });\n    \n    Boundary.on(Events.EXIT, id =\u003e {\n      // Prints 'Ya! You better get out of my Chipotle!!'\n      console.log(`Ya! You better get out of my ${id}!!`)\n    })\n  }\n  \n  componentWillUnmount() {\n    // Remove the events\n    Boundary.off(Events.ENTER)\n    Boundary.off(Events.EXIT)\n\n    // Remove the boundary from native API´s\n    Boundary.remove('Chipotle')\n      .then(() =\u003e console.log('Goodbye Chipotle :('))\n      .catch(e =\u003e console.log('Failed to delete Chipotle :)', e))\n  }\n}\n```\n## Getting started\n\n`$ npm install react-native-boundary --save`\n\n### Automatic Installation\n\n`$ react-native link react-native-boundary`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-boundary` and add `RNBoundary.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNBoundary.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.eddieowens.RNBoundaryPackage;` to the imports at the top of the file\n  - Add `new RNBoundaryPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-boundary'\n  \tproject(':react-native-boundary').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-boundary/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-boundary')\n  \t```\n  \t\n### Post Install\n\n#### Android\n\nAdd the `ACCESS_FINE_LOCATION` permission to your `AndroidManifest.xml` like so,\n\n```xml\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n          package=\"com.mypackage\"\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/\u003e\n    ...\n\u003c/manifest\u003e\n```\n\n#### iOS\nBefore iOS 11:\nAdd the following to your `Info.plist`:\n- `NSLocationAlwaysUsageDescription`\n\nFor iOS 11:\nAdd the following to your `Info.plist`:\n- `NSLocationWhenInUseUsageDescription`\n- `NSLocationAlwaysAndWhenInUseUsageDescription`\n\n## API\n\n### Functions\nName        | Arguments                                     | Note\n----------- | --------------------------------------------- | ---\n`on`        | event: [event](#events), callback: `function` | Triggers the callback when the `event` occurs. The callback will be passed an array of boundary ids as `strings`. Can be called in the background\n`off`       | event: [event](#events)                       | Removes bound event listeners\n`add`       | boundary: [boundary](#boundary)               | Adds a `Boundary` that can be triggered when an [event](#events) occurs\n`remove`    | id: `string`                                  | Removes a Boundary from being triggered. Boundaries will remain until `remove` or `removeAll` is called or the app is uninstalled\n`removeAll` | `void`                                        | Removes all boundaries and event callbacks.\n\n### Types\n#### Boundary\nField    | Type     | Note\n-------- | -------- | ----\n`id`     | `string` | ID for your boundary. Value that is returned when an [event](#events) is triggered\n`lat`    | `number` | Must be a valid latitude\n`lng`    | `number` | Must be a valid longitude\n`radius` | `number` | In meters. It is highly suggested that the `radius` is greater than 50 meters\n\n#### Events\nField    | Type      | Note\n-------- | --------- | ----\n`ENTER`  | `string`  | Event for when a user enters a [boundary](#boundary)  \n`EXIT`   | `string`  | Event for when a user exits a [boundary](#boundary)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieowens%2Freact-native-boundary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddieowens%2Freact-native-boundary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieowens%2Freact-native-boundary/lists"}