Skip to main content

React Native API Reference

Import

import Fidbek from '@saltware/fidbek-react-native';

Methods

configure(options)

Initializes native SDK runtime.

await Fidbek.configure({
token: 'YOUR_TOKEN',
shakeToOpenEnabled: true,
});

open()

Manually opens feedback flow.

await Fidbek.open();

identify(options)

Stores an optional SDK identity. At least one of userId, name, or email is required.

await Fidbek.identify({
userId: 'user_123',
email: 'talha@example.com',
});

clearIdentity()

Clears the stored SDK identity on native side.

await Fidbek.clearIdentity();

shutdown()

Stops listeners/runtime state on native side.

await Fidbek.shutdown();

Types

type FidbekConfigureOptions = {
token: string;
shakeToOpenEnabled?: boolean;
};

type FidbekIdentifyOptions = {
userId?: string | null;
name?: string | null;
email?: string | null;
};

Notes

  • Same JS API works in React Native CLI and Expo Development Builds
  • New Architecture is required
  • 0.3.0 keeps wrapper surface intentionally small:
    • configure
    • open
    • identify
    • clearIdentity
    • shutdown
  • Native binaries underneath add:
    • bug occurrence frequency selector
    • locale-driven UI (en, tr, es, fr, de, pt, ar, hi, ja, zh-Hans / zh-CN, fallback en)
    • persistent optional SDK identity
    • improved shake behavior and reliability paths
  • Wrapper does not expose deprecated native attachment staging helpers.