{"id":23816539,"url":"https://github.com/yoman07/react-native-indicative","last_synced_at":"2025-09-06T23:32:59.441Z","repository":{"id":33575974,"uuid":"159493044","full_name":"yoman07/react-native-indicative","owner":"yoman07","description":"React Native iOS and Android wrapper for Indicative","archived":false,"fork":false,"pushed_at":"2023-01-03T15:27:31.000Z","size":2228,"stargazers_count":4,"open_issues_count":16,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T11:48:08.147Z","etag":null,"topics":["analytics","indicative","react-native","react-native-analytics","react-native-indicative"],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoman07.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-11-28T11:42:31.000Z","updated_at":"2020-05-13T12:25:56.000Z","dependencies_parsed_at":"2023-01-15T01:30:01.850Z","dependency_job_id":null,"html_url":"https://github.com/yoman07/react-native-indicative","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoman07%2Freact-native-indicative","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoman07%2Freact-native-indicative/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoman07%2Freact-native-indicative/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoman07%2Freact-native-indicative/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoman07","download_url":"https://codeload.github.com/yoman07/react-native-indicative/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232153901,"owners_count":18480235,"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":["analytics","indicative","react-native","react-native-analytics","react-native-indicative"],"created_at":"2025-01-02T04:30:16.742Z","updated_at":"2025-01-02T04:30:18.909Z","avatar_url":"https://github.com/yoman07.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-indicative\n\n## Getting started\n\n`$ npm install react-native-indicative --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-indicative`\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-indicative` and add `RNIndicative.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNIndicative.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.reactlibrary.RNIndicativePackage;` to the imports at the top of the file\n  - Add `new RNIndicativePackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-indicative'\n  \tproject(':react-native-indicative').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-indicative/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-indicative')\n  \t```\n\n## Usage\n```javascript\nimport Indicative from 'react-native-indicative';\n\nIndicative.launch(\"YOUR-INDICATIVE-API-KEY\");\n\nIndicative.record(\"App Open\");\n\nIndicative.identifyUser(\"xyz5\");\n\nIndicative.addCommonProperties({\"property2\": 1, \"property2\": \"test\"});\n\nIndicative.addCommonProperty(\"property3\", \"test2\");\n\nIndicative.addCommonProperty(\"property4\", \"test4\");\n\nIndicative.removeCommonProperty(\"property3\");\n\nIndicative.clearCommonProperties();\n\nIndicative.addCommonProperty(\"property5\", \"test5\");\n\nIndicative.recordWithProperties(\"App Open 2\", {\"app open property\": 555});\n\nIndicative.recordWithUniqueKey(\"App Open 3\", \"unique key\");\n \nIndicative.recordWithPropertiesUniqueKey(\"App Open 4\", \"unique key\", {\"app open property2\": 555});\n```\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoman07%2Freact-native-indicative","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoman07%2Freact-native-indicative","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoman07%2Freact-native-indicative/lists"}