{"id":4780,"url":"https://github.com/andyscott/react-native-hawk","last_synced_at":"2025-07-25T07:33:41.578Z","repository":{"id":57337373,"uuid":"43842519","full_name":"andyscott/react-native-hawk","owner":"andyscott","description":null,"archived":false,"fork":false,"pushed_at":"2015-10-08T03:51:50.000Z","size":148,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T02:04:35.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyscott.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":"2015-10-07T20:20:10.000Z","updated_at":"2021-02-11T23:48:41.000Z","dependencies_parsed_at":"2022-09-13T02:40:34.233Z","dependency_job_id":null,"html_url":"https://github.com/andyscott/react-native-hawk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyscott/react-native-hawk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyscott%2Freact-native-hawk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyscott%2Freact-native-hawk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyscott%2Freact-native-hawk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyscott%2Freact-native-hawk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyscott","download_url":"https://codeload.github.com/andyscott/react-native-hawk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyscott%2Freact-native-hawk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266973168,"owners_count":24014630,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-01-05T20:17:23.096Z","updated_at":"2025-07-25T07:33:41.553Z","avatar_url":"https://github.com/andyscott.png","language":"Objective-C","readme":"# react-native-hawk\nHawk support for react native.\n\nThis is a wrapper around https://github.com/tent/hawk-objc.\n\n\n### Example (using data from hawk-objc tests):\n```\nimport Hawk from 'react-native-hawk';\nHawk.generateRequestHeader({\n  credentials: {\n    id          : 'exqbZWtykFZIh2D7cXi9dA',\n    key         : 'HX9QcbD-r3ItFEnRcAuOSg',\n    algorithm   : 'sha256'\n  },\n  contentType   : 'application/vnd.tent.post.v0+json',\n  method        : 'POST',\n  requestUri    : '/posts',\n  host          : 'example.com',\n  port          : 443,\n  payload       : '{\\\"type\\\":\\\"https://tent.io/types/status/v0#\\\"}'\n}, (header) =\u003e {\n  console.log('got header: ' + header);\n});\n```\n\nThis prints `got header: Authorization: Hawk id=\"exqbZWtykFZIh2D7cXi9dA\", mac=\"aBRih06F36eDFfyq06yNcItZZWFLsPKZOXQPnHm9I+c=\", ts=\"0\", nonce=\"D9AA709B-322D-4E44-AC01-F070317638C7\", hash=\"neQFHgYKl/jFqDINrC21uLS0gkFglTz789rzcSr7HYU=\"`.\n\n## Getting started\n1. `npm install --save react-native-hawk`\n2. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n3. add `./node_modules/react-native-hawk/RNHawk.xcodeproj`\n4. In the XCode project navigator, select your project, select the `Build Phases` tab and in the `Link Binary With Libraries` section add **libRNHawk.a**\n6. `import Hawk from 'react-native-hawk';` in your code.\n","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyscott%2Freact-native-hawk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyscott%2Freact-native-hawk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyscott%2Freact-native-hawk/lists"}