@amplitude/session-replay-react-native
Version:
Amplitude Session Replay for React Native
31 lines (28 loc) • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NativeSessionReplay = void 0;
var _reactNative = require("react-native");
const LINKING_ERROR = `The package '@amplitude/session-replay-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
ios: "- You have run 'pod install'\n",
default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
const NativeSessionReplay = exports.NativeSessionReplay = _reactNative.NativeModules.AMPNativeSessionReplay ? _reactNative.NativeModules.AMPNativeSessionReplay : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
/**
* Configuration interface for setting up the native iOS and Android session replay modules.
* This interface defines all the parameters required to initialize the native session replay functionality.
*/
/**
* Interface defining the native session replay module specification.
* This interface provides the contract for communication between JavaScript and
* the native iOS/Android session replay modules through React Native's bridge.
*
* All methods are asynchronous and return Promises to handle the bridge communication
* between JavaScript and native code.
*/
//# sourceMappingURL=native-module.js.map