{"id":28223019,"url":"https://github.com/context-sdk/react-native","last_synced_at":"2025-06-11T19:31:50.787Z","repository":{"id":239581190,"uuid":"797301829","full_name":"context-sdk/react-native","owner":"context-sdk","description":"Real-world context insights SDK for React Native apps, enhancing user experience and engagement with a privacy-first approach","archived":false,"fork":false,"pushed_at":"2025-05-20T11:26:47.000Z","size":2366,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-02T11:29:48.994Z","etag":null,"topics":["coreml","ios","on-device","privacy","react-native"],"latest_commit_sha":null,"homepage":"https://contextsdk.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/context-sdk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-07T15:20:20.000Z","updated_at":"2025-05-20T11:26:49.000Z","dependencies_parsed_at":"2024-06-03T14:48:31.855Z","dependency_job_id":"491b9808-1945-4e02-ac39-ea3ba77de356","html_url":"https://github.com/context-sdk/react-native","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.65625,"last_synced_commit":"549f5998cca36d12bfb59c4bf8beab9f9b8fab10"},"previous_names":["context-sdk/react-native"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-sdk%2Freact-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-sdk%2Freact-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-sdk%2Freact-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-sdk%2Freact-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/context-sdk","download_url":"https://codeload.github.com/context-sdk/react-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-sdk%2Freact-native/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258800398,"owners_count":22760002,"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":["coreml","ios","on-device","privacy","react-native"],"created_at":"2025-05-18T07:14:37.328Z","updated_at":"2025-06-11T19:31:50.781Z","avatar_url":"https://github.com/context-sdk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ContextSDK for React Native\n\n[![npm version](https://img.shields.io/npm/v/react-native-context-sdk)](https://www.npmjs.com/package/react-native-context-sdk)\n[![Changelog](https://img.shields.io/badge/changelog-latest-blue)](https://docs.contextsdk.com/other/changelog)\n[![Documentation](https://img.shields.io/badge/documentation-latest-blue)](https://docs.contextsdk.com/)\n[![Issues](https://img.shields.io/github/issues/context-sdk/react-native)](https://github.com/context-sdk/react-native/issues)\n[![Pull Requests](https://img.shields.io/github/issues-pr/context-sdk/react-native)](https://github.com/context-sdk/react-native/pulls)\n\nContextSDK is a powerful tool that brings real-world context and insights directly into your React Native app through on-device signals, empowering you to boost conversions and engagement, enhance user experiences, and reduce churn — all with privacy in mind, as no personally identifiable information (PII) is ever collected.\n\nOur SDK supports iOS and will soon support Android, making it easy to integrate into your cross-platform React Native projects.\n\n## Getting Started\n\nThis repository is dedicated to managing releases of ContextSDK for React Native, distributed via [npm](https://www.npmjs.com/package/react-native-context-sdk). For other platforms, such as Flutter and Swift, or alternative installation methods, please see our [official documentation](https://docs.contextsdk.com/).\n\nTo integrate ContextSDK into your React Native project, follow these steps:\n\n### Installation\n\n1. Add `react-native-context-sdk` to your project using your preferred package manager:\n\n```bash\nnpm install react-native-context-sdk@latest\n```\n\nOr:\n\n```bash\nyarn add react-native-context-sdk\n```\n\n2. Ensure the minimum deployment target for iOS is set to `14.0` or higher in your `ios/Podfile`:\n\n```ruby\nplatform :ios, \"14.0\"\n```\n\n### Setup\n\nAfter installing ContextSDK, initialize it with your license key at app startup. You can [sign up here](https://console.contextsdk.com/register) to receive your license key.\n\n```js\nimport { setup } from \"react-native-context-sdk\";\n\nvoid setup(\"YOUR_LICENSE_KEY_HERE\");\n```\n\n## Using ContextSDK\n\n### Tracking Events\n\nTo maximize the value of ContextSDK, you can log various events in your app to gain insights into how real-world context influences user behavior.\n\n#### Track Page Views\n\nTrack users navigating through different screens in your app:\n\n```js\nimport { trackPageView } from \"react-native-context-sdk\";\n\ntrackPageView(\"page_identifier\");\n```\n\n#### Track User Actions\n\nTrack specific user actions, such as enabling features or tapping buttons:\n\n```js\nimport { trackUserAction } from \"react-native-context-sdk\";\n\ntrackUserAction(\"user_tapped_share_button\");\n```\n\n#### Track Custom Events\n\nLog any custom events generically to get insights into their real-world context:\n\n```js\nimport { trackEvent } from \"react-native-context-sdk\";\n\ntrackEvent(\"custom_event\");\n```\n\n### Going Live\n\nOnce integrated, you're ready to ship your app update to the App Store and start leveraging real-world context insights.  Continue to the [release page](https://docs.contextsdk.com/context-decision/release-checklist) for a final check before shipping, as well as other deployment tips.\n\n## Documentation\n\nFor detailed setup instructions, usage examples, and advanced usage scenarios, visit our [official documentation](https://docs.contextsdk.com/).\n\n## Not using ContextSDK yet?\n\nIf you’re interested in adding real-world context insights to your app, you can [sign up here](https://dashboard.contextsdk.com/register) to receive your license key and access. For more information about how ContextSDK can enhance your app’s user experience, visit our [website](https://contextsdk.com) or reach out to our team at support@contextsdk.com.\n\n## Support\n\nFor any questions or technical support, please don’t hesitate to reach out to our team — we’re eager to help!\n\nThank you for choosing ContextSDK! 🚀 We’re excited to support you in building context-aware experiences for your users.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-sdk%2Freact-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontext-sdk%2Freact-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-sdk%2Freact-native/lists"}