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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-marigold

v18.0.1

Published

React Native wrapper for the Marigold Android and iOS SDKs

Readme

React Native : Marigold SDK

Wraps the native Marigold SDK for React Native apps.

Requires React Native New Architecture. This SDK uses TurboModules and does not support the legacy architecture. Ensure New Architecture is enabled in your app before installing (React Native 0.76+).

Installation

npm install react-native-marigold --save

Running pod install in the ios folder should set up everything you need on the iOS side. On the Android side the only manual step required involves adding our maven URL to the repositories in the app level build.gradle:

maven {
    url "https://github.com/sailthru/maven-repository/raw/master/"
}

You'll then need to call startEngine in the native SDKs when the application is created:

iOS

Objective-C

#import <Marigold/Marigold.h>

- (BOOL)application:(UIApplication * )application didFinishLaunchingWithOptions:(NSDictionary * )launchOptions {
      ...
      [[Marigold new] startEngine:SDK_KEY withAuthorizationOption:STMPushAuthorizationOptionProvisional]; // Obtain SDK key from your Marigold app settings
      ...
}

Swift

import Marigold

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    ...
    Marigold().startEngine(SDK_KEY, withAuthorizationOption: .provisional) // Obtain SDK key from your Marigold app settings
    ...
}

Android

Java

import com.marigold.sdk.Marigold;

public class MainApplication extends Application implements ReactApplication {

    @Override
    public void onCreate() {
      super.onCreate();
      ...
      new Marigold().startEngine(this, SDK_KEY); // Obtain SDK key from your Marigold app settings
      ...
    }

}

Kotlin

import com.marigold.sdk.Marigold

class MainApplication : Application(), ReactApplication {

  override fun onCreate() {
    super.onCreate()
    ...
     Marigold().startEngine(this, SDK_KEY) // Obtain SDK key from your Marigold app settings
    ...
  }

}

Example

We have provided an example JS file for both iOS and Android. Examples of the promises-based wrapper can be found there.

Development

You can setup the project locally for development and running the test suites.

Prerequisites

You will need the following things installed on your system.

Installation

Run yarn in the project root to install the required node dependencies.

Move into the ios folder and run pod install --repo-update to install the iOS dependencies, you can then open MarigoldSDKReactNative.xcworkspace in Xcode.

Open the android folder in Android Studio and perform a gradle sync to install the Android dependencies.

Testing

Run yarn test in the project root to run the Jest test suite.

Run Product -> Test in the Xcode toolbar to run the iOS test suite.

Run the RNMarigoldModuleTest configuration in Android Studio to run the Android test suite.