npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dashx/react-native

v1.0.8

Published

DashX SDK for React Native

Downloads

6

Readme

@dashx/react-native

DashX SDK for React Native

Install

npm

npm install @dashx/react-native

yarn

yarn add @dashx/react-native

Setup for Android

DashX requires Google Services installed in your app for Firebase to work:

  • Add google-services plugin in your /android/build.gradle
buildscript {
  dependencies {
    // ... other dependencies
    classpath 'com.google.gms:google-services:4.3.3'
  }
}
  • Add this line in your /android/app/build.gradle
apply plugin: 'com.google.gms.google-services'
  • Add your Android app on Firebase Console: Project Overview > Add App > Android

  • Download google-services.json from there.

  • Add google-services.json at the following location: /android/app/google-services.json

Setup for iOS

#import <FirebaseCore/FirebaseCore.h>
#import <FirebaseMessaging/FirebaseMessaging.h>
  • In the same file, inside your didFinishLaunchingWithOptions add this:
// Register for remote notifications. This shows a permission dialog on first run, to
// show the dialog at a more appropriate time move this registration accordingly.
// [START register_for_notifications]
[UNUserNotificationCenter currentNotificationCenter].delegate = self;
UNAuthorizationOptions authOptions = UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge;
[[UNUserNotificationCenter currentNotificationCenter]
    requestAuthorizationWithOptions:authOptions
    completionHandler:^(BOOL granted, NSError * _Nullable error) {
}];

[application registerForRemoteNotifications];
// [END register_for_notifications]

// [START configure_firebase]
if ([FIRApp defaultApp] == nil) {
  [FIRApp configure];
}
// [END configure_firebase]

// [START set_messaging_delegate]
[FIRMessaging messaging].delegate = self;
// [END set_messaging_delegate]
  • In your Podfile add this:
pod 'FirebaseMessaging', :modular_headers => true
  • Add your iOS app on Firebase Console: Project Overview > Add App > iOS

  • Download GoogleService-Info.plist

  • 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.

Usage

For detailed usage, refer to the documentation.

Contributing

Please follow these steps to set-up development environment.

You'll also need Apollo CLI to generate files.

$ npm i -g apollo

For the next steps, please follow the guide for the respective platform:

Publishing

Simply use yarn publish to bump the version & release. Once done, push the commit that yarn adds to GitHub:

$ yarn publish
$ git push origin main