{"id":20284703,"url":"https://github.com/dashxhq/dashx-react-native","last_synced_at":"2026-01-07T10:36:07.078Z","repository":{"id":57106050,"uuid":"506117225","full_name":"dashxhq/dashx-react-native","owner":"dashxhq","description":"DashX SDK for React Native","archived":false,"fork":false,"pushed_at":"2024-06-06T02:26:40.000Z","size":899,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-03T17:47:08.086Z","etag":null,"topics":["ab-testing","admin-panel","analytics","automation","billing","cms","feature-flags","messaging","notifications","react-native"],"latest_commit_sha":null,"homepage":"https://docs.dashx.com/developer","language":"Kotlin","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/dashxhq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-22T06:01:36.000Z","updated_at":"2023-01-15T04:41:25.000Z","dependencies_parsed_at":"2024-11-14T14:21:17.689Z","dependency_job_id":"f3771413-0da0-4115-8c38-bb5c0804a0d9","html_url":"https://github.com/dashxhq/dashx-react-native","commit_stats":{"total_commits":25,"total_committers":6,"mean_commits":4.166666666666667,"dds":0.6799999999999999,"last_synced_commit":"3a3825eb42330168ec672b4d39d3047b95a03036"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashxhq%2Fdashx-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashxhq%2Fdashx-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashxhq%2Fdashx-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashxhq%2Fdashx-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashxhq","download_url":"https://codeload.github.com/dashxhq/dashx-react-native/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246113805,"owners_count":20725528,"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":["ab-testing","admin-panel","analytics","automation","billing","cms","feature-flags","messaging","notifications","react-native"],"created_at":"2024-11-14T14:21:11.684Z","updated_at":"2026-01-07T10:36:02.034Z","avatar_url":"https://github.com/dashxhq.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://dashx.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/dashxhq/brand-book/master/assets/logo-black-text-color-icon@2x.png\" alt=\"DashX\" height=\"40\" /\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003cstrong\u003eYour All-in-One Product Stack\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch4\u003e\n    \u003ca href=\"https://dashx.com\"\u003eWebsite\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://dashxdemo.com\"\u003eDemos\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://docs.dashx.com/developer\"\u003eDocumentation\u003c/a\u003e\n  \u003c/h4\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n# @dashx/react-native\n\n_DashX SDK for React Native_\n\n## Install\n\n**npm**\n```sh\nnpm install @dashx/react-native\n```\n\n**yarn**\n```sh\nyarn add @dashx/react-native\n```\n\n### Setup for Android\n\nDashX requires Google Services installed in your app for Firebase to work:\n\n- Add `google-services` plugin in your `/android/build.gradle`\n\n```gradle\nbuildscript {\n  dependencies {\n    // ... other dependencies\n    classpath 'com.google.gms:google-services:4.3.3'\n  }\n}\n```\n\n- Add this line in your `/android/app/build.gradle`\n\n```gradle\napply plugin: 'com.google.gms.google-services'\n```\n\n- Add your Android app on Firebase Console: `Project Overview \u003e Add App \u003e Android`\n\n- Download `google-services.json` from there.\n\n- Add `google-services.json` at the following location: `/android/app/google-services.json`\n\n### Setup for iOS\n\n- At the top of the file `/ios/{projectName}/AppDelegate.m` before [#if defined(FB_SONARKIT_ENABLED)](https://github.com/react-native-camera/react-native-camera/issues/3008#issuecomment-726432198), import Firebase:\n\n```objective-c\n#import \u003cFirebaseCore/FirebaseCore.h\u003e\n#import \u003cFirebaseMessaging/FirebaseMessaging.h\u003e\n```\n\n- In the same file, inside your `didFinishLaunchingWithOptions` add this:\n\n```objective-c\n// Register for remote notifications. This shows a permission dialog on first run, to\n// show the dialog at a more appropriate time move this registration accordingly.\n// [START register_for_notifications]\n[UNUserNotificationCenter currentNotificationCenter].delegate = self;\nUNAuthorizationOptions authOptions = UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge;\n[[UNUserNotificationCenter currentNotificationCenter]\n    requestAuthorizationWithOptions:authOptions\n    completionHandler:^(BOOL granted, NSError * _Nullable error) {\n}];\n\n[application registerForRemoteNotifications];\n// [END register_for_notifications]\n\n// [START configure_firebase]\nif ([FIRApp defaultApp] == nil) {\n  [FIRApp configure];\n}\n// [END configure_firebase]\n\n// [START set_messaging_delegate]\n[FIRMessaging messaging].delegate = self;\n// [END set_messaging_delegate]\n```\n\n- In your `Podfile` add this:\n\n```ruby\npod 'FirebaseMessaging', :modular_headers =\u003e true\n```\n\n- Add your iOS app on Firebase Console: `Project Overview \u003e Add App \u003e iOS`\n\n- Download `GoogleService-Info.plist`\n\n- Add `GoogleService-Info.plist` using XCode by right clicking on project and select `Add Files`, select your downloaded file and make sure `Copy items if needed` is checked.\n\n## Usage\n\nFor detailed usage, refer to the [documentation](https://docs.dashx.com/developer).\n\n## Contributing\n\nPlease follow [these steps](https://github.com/dashxhq/dashx-js/tree/master/examples/react-native#setting-up-development-environment) to set-up development environment.\n\nYou'll also need Apollo CLI to generate files.\n\n```sh\n$ npm i -g apollo\n```\n\nFor the next steps, please follow the guide for the respective platform:\n\n- [Android](android/README.md)\n- [iOS](ios/README.md)\n\n## Publishing\n\nSimply use `yarn publish` to bump the version \u0026 release. Once done, push the commit that yarn adds to GitHub:\n\n```sh\n$ yarn publish\n$ git push origin main\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashxhq%2Fdashx-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashxhq%2Fdashx-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashxhq%2Fdashx-react-native/lists"}