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

Published

test

Downloads

709

Readme

feedback-react-native-sdk

Pisano Feedback SDK for React Native — supports both New Architecture (TurboModule) and Legacy Bridge.

Installation

npm install feedback-react-native-sdk
# or
yarn add feedback-react-native-sdk

iOS: run pod install in your ios/ directory after installing.

Quick start

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

1. Boot (call once on app start)

feedbackSDKBoot(
  'YOUR_APP_ID',
  'YOUR_ACCESS_KEY',
  'PSN-xxxxx',                              // code (required)
  'https://api.pisano.co',
  'https://web.pisano.co/web_feedback',
  undefined,                                 // eventUrl (optional)
  (status) => console.log('Boot:', status)
);

2. Show the survey widget

feedbackSDKShow(
  feedbackSDKViewMode.BottomSheet,
  'We Value Your Feedback',                  // title
  16,                                        // titleFontSize
  null,                                      // code override (null = use boot code)
  'en',                                      // language
  new Map([                                  // customer
    ['name', 'John Doe'],
    ['email', '[email protected]'],
    ['phoneNumber', '+905551112233'],
    ['externalId', 'USR-42'],
  ]),
  new Map([                                  // payload
    ['screenName', 'Checkout'],
    ['orderId', 'ORD-987'],
  ]),
  (result) => console.log('Show:', result)
);

3. Clear session (optional)

feedbackSDKClear();

Key concepts

  • Boot stores credentials and initializes the native SDK. Call it once. It does not open any UI.
  • Show opens the survey widget using the stored config from boot. You can override the code per call to show a different channel.
  • Customer keys must be camelCasename, email, phoneNumber, externalId. Both camelCase and snake_case are accepted but camelCase is recommended.

API reference

feedbackSDKDebugMode(debugMode: boolean)

Enables verbose native logging. Call before boot.

feedbackSDKDebugMode(true);

// Android: adb logcat -s PISANO_SDK ReactNativeJS
// iOS: Xcode console → filter "Pisano"

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

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | appId | string | yes | Application ID from Pisano | | accessKey | string | yes | Access key from Pisano | | code | string | yes | Channel identifier (e.g. "PSN-xxxxx") | | apiUrl | string | yes | API endpoint | | feedbackUrl | string | yes | Feedback endpoint | | eventUrl | string | no | Event tracking endpoint | | callback | (status: string) => void | no | Boot result callback |

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

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | viewMode | feedbackSDKViewMode | yes | .Default or .BottomSheet | | title | string | null | no | Widget title | | titleFontSize | number | null | no | Title font size | | code | string | null | no | Override boot code for this call | | language | string | null | no | e.g. "en", "tr" | | customer | Map<string, any> | null | no | Customer info (camelCase keys) | | payload | Map<string, string> | null | no | Custom data (camelCase keys) | | callback | (result) => void | yes | Result as enum string |

Customer keys: name, email, phoneNumber, externalId, customAttributes (both camelCase and snake_case variants like phone_number, external_id are also accepted)

Payload keys: any key-value pairs relevant to your context (e.g. screenName, orderId, productCategory)

Callback values: "Closed", "SendFeedback", "Outside", "Opened", "DisplayOnce", "PreventMultipleFeedback", "QuotaExceeded", "DisplayRateLimited", "SurveyPassive", "HealthCheckFailed"

feedbackSDKClear()

Clears native SDK session and cached state.

New Architecture support

The SDK works with both architectures out of the box:

  • newArchEnabled=true → TurboModule
  • newArchEnabled=false → Legacy bridge

No extra configuration needed. The SDK reads the standard newArchEnabled flag from gradle.properties.

Example app

See example/ for a working demo with all SDK functions. Setup guides:

License

MIT