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

feedback-react-native-sdk

v0.2.8

Published

test

Readme

feedback-react-native-sdk

Pisano Feedback SDK for React Native

Installation

npm install feedback-react-native-sdk

Usage

import { feedbackSDKDebugMode } from 'feedback-react-native-sdk';
import { feedbackSDKBoot } from 'feedback-react-native-sdk';
import { feedbackSDKShow } from 'feedback-react-native-sdk';
import { feedbackSDKTrack } from 'feedback-react-native-sdk';
import { feedbackSDKClear } from 'feedback-react-native-sdk';
import { feedbackSDKViewMode } from 'feedback-react-native-sdk';

// ...

feedbackSDKDebugMode(bool);

feedbackSDKBoot(appId, accessKey, apiUrl, feedbackUrl, eventUrl);
      
feedbackSDKShow(flowId, language, customer, payload, (status) => {
      console.log("Show Status: " + status);
    });

feedbackSDKTrack(event, payload, customer, language, (status) => {
      console.log("Show Status: " + status);
    });

feedbackSDKClear();

Quick start (recommended flow)

  1. Enable debug logs (optional)
feedbackSDKDebugMode(true);
  1. Initialize the native SDK (call once on app start)
feedbackSDKBoot(
  'YOUR_APP_ID',
  'YOUR_ACCESS_KEY',
  'https://api.pisano.co',
  'https://web.pisano.co/web_feedback',
  undefined, // eventUrl (optional)
  (status) => console.log('Boot status:', status)
);
  1. Show the widget
feedbackSDKShow(
  feedbackSDKViewMode.BottomSheet, // or feedbackSDKViewMode.Default
  'We Value Your Feedback',        // title (string | null)
  16,                              // titleFontSize (number | null)
  null,                            // flowId (string | null)
  'en',                            // language (string | null)
  new Map([['email', '[email protected]']]), // customer (Map | null)
  new Map([['source', 'home']]),            // payload (Map | null)
  (result) => console.log('Show result:', result) // enum string like "Closed"
);
  1. Track an event (optional)
feedbackSDKTrack(
  'purchase_completed',
  new Map([['amount', '49.99']]),
  new Map([['externalId', 'USER-123']]),
  'en',
  (status) => console.log('Track status:', status)
);
  1. Clear session/state (optional)
feedbackSDKClear();

API reference

feedbackSDKBoot(appId, accessKey, apiUrl, feedbackUrl, eventUrl?, callback?)

  • appId: string
  • accessKey: string
  • apiUrl: string (e.g. https://api.pisano.co)
  • feedbackUrl: string (e.g. https://web.pisano.co/web_feedback)
  • eventUrl: string | undefined (optional)
  • callback: (status: string) => void (optional)

feedbackSDKShow(viewMode, title, titleFontSize, flowId, language, customer, payload, callback)

  • viewMode: feedbackSDKViewMode.Default | feedbackSDKViewMode.BottomSheet
  • title: string | null
  • titleFontSize: number | null
  • flowId: string | null
  • language: string | null (e.g. "en", "tr")
  • customer: Map<string, any> | null
  • payload: Map<string, string> | null
  • callback: (result) => void
    • result is returned as an enum string: "Closed", "SendFeedback", "Outside", "Opened", "DisplayOnce", "PreventMultipleFeedback", "QuotaExceeded" (or "None")

feedbackSDKTrack(event, payload?, customer?, language?, callback?)

  • event: string
  • payload: Map<string, string> (optional)
  • customer: Map<string, any> (optional)
  • language: string (optional)
  • callback: (status: string) => void (optional)

feedbackSDKClear()

Clears native SDK state (session/cache) for the current user.

Sample apps (iOS / Android)

This repo includes a React Native example app under example/ that installs the SDK from this repo via file:../.

  • iOS example app setup: example/ios/README.md
  • Android example app setup: example/android/README.md

You can also see the demo usage in example/src/App.tsx.

Android new architecture (TurboModule) toggle

The package ships with the legacy bridge enabled by default to guarantee compatibility with existing apps. If you need to opt in to the new architecture/TurboModule implementation:

  1. Open your app’s android/gradle.properties.
  2. Add FeedbackReactNativeSdk_newArchEnabled=true.
  3. Follow the React Native new-arch guide (e.g. run ./gradlew generateCodegenArtifactsFromSchema).

When the property is omitted (the default), only the legacy Java module is compiled and no extra steps are required for consumers upgrading to a newer SDK version.

Development guide

See DEVELOPMENT.md for a deeper look at the bridge architecture, native integration points, and local development workflow.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library