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

cloud4feed-mobilesdk-react-native

v1.3.8

Published

React Native Survey SDK with automatic triggers and user targeting

Readme

Survey SDK React Native

A survey SDK for React Native apps with automatic triggers, user targeting and exclusion rules. Android and iOS (iOS since 1.3.0, iOS 15+).

Installation

npm install cloud4feed-mobilesdk-react-native

Android

The native module is linked automatically (autolinking). It pulls the native SDK AAR from JitPack, so add JitPack to your Android settings.gradle / build.gradle repositories:

maven { url 'https://jitpack.io' }

iOS

The iOS SDK is bundled in the package; no extra repository is needed.

  1. In ios/Podfile set the minimum iOS version to 15:

    platform :ios, '15.0'

    With Xcode 27 also raise the React Native pods, inside post_install after react_native_post_install(...):

    installer.pods_project.targets.each do |t|
      t.build_configurations.each { |c| c.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' }
    end

    and set the app target's iOS Deployment Target to 15.0 in Xcode.

  2. cd ios && pod install

  3. Apps built with the iOS 27 SDK must use the UIScene life cycle, otherwise they close at launch without an error. If your Info.plist has no UIApplicationSceneManifest entry (the React Native 0.74 and Expo SDK 54 templates have none), add one plus a SceneDelegate that moves the React Native window into the scene and forwards links to RCTLinkingManager:

    // SceneDelegate.m  (SceneDelegate.h: @interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
    //                    @property (nonatomic, strong) UIWindow *window; @end)
    #import "SceneDelegate.h"
    #import "AppDelegate.h"
    #import <React/RCTLinkingManager.h>
    
    @implementation SceneDelegate
    - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session
          options:(UISceneConnectionOptions *)connectionOptions {
      if (![scene isKindOfClass:[UIWindowScene class]]) { return; }
      AppDelegate *app = (AppDelegate *)UIApplication.sharedApplication.delegate;
      UIViewController *root = app.window.rootViewController;
      app.window.rootViewController = nil;
      UIWindow *window = [[UIWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
      window.rootViewController = root;
      self.window = window;
      app.window = window;
      [window makeKeyAndVisible];
      NSURL *url = connectionOptions.URLContexts.anyObject.URL;
      if (url) { [RCTLinkingManager application:UIApplication.sharedApplication openURL:url options:@{}]; }
    }
    - (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
      NSURL *url = URLContexts.anyObject.URL;
      if (url) { [RCTLinkingManager application:UIApplication.sharedApplication openURL:url options:@{}]; }
    }
    @end
    <key>UIApplicationSceneManifest</key>
    <dict>
      <key>UIApplicationSupportsMultipleScenes</key><false/>
      <key>UISceneConfigurations</key>
      <dict>
        <key>UIWindowSceneSessionRoleApplication</key>
        <array>
          <dict>
            <key>UISceneConfigurationName</key><string>Default</string>
            <key>UISceneDelegateClassName</key><string>SceneDelegate</string>
          </dict>
        </array>
      </dict>
    </dict>

    Deep links (URL value source) need no JavaScript: links that reach RCTLinkingManager are passed to the SDK, also when they open a closed app.

Usage

import { NativeModules } from 'react-native';
const { MobileSDK } = NativeModules;

// 1. Initialize with your API key (and optional user parameters)
await MobileSDK.initializeWithParams('sk_your_api_key', [{ CustomerID: '12345' }]);

// 2. Enable automatic trigger detection
await MobileSDK.autoSetupReact();

// 3. Report screen changes (feeds Navigation / Exit triggers)
MobileSDK.trackScreenView('home');

// Optional: manual helpers
await MobileSDK.getDebugStatus();

Buttons and tabs are detected by accessibilityLabel / testID (on both platforms): a TouchableOpacity with accessibilityLabel="my_custom_button" opens the survey whose button id is my_custom_button. Use the same screen, tab and button names on Android and iOS.

Surveys are configured in the Cloud4Feed Configuration Manager; the SDK fetches them with your API key and shows them in a web view when a trigger fires.