0.4.1 • Published 6 months ago

@amplitude/plugin-session-replay-react-native v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@amplitude/plugin-session-replay-react-native

Amplitude Session Replay plugin for React Native

Installation

npm install @amplitude/plugin-session-replay-react-native

Usage

Add the session replay plugin to your Amplitude instance as follows

import { SessionReplayPlugin } from '@amplitude/plugin-session-replay-react-native';

// ...

const config: SessionReplayConfig = {
    enableRemoteConfig: true, // default true
    sampleRate: 1, // default 0
};
await init('YOUR_API_KEY').promise;
await add(new SessionReplayPlugin(config)).promise;

Masking views

To maks certain views, add the AmpMaskView tag with the mask property amp-mask around the section to be masked

import { AmpMaskView } from '@amplitude/plugin-session-replay-react-native';

// ...

<AmpMaskView mask="amp-mask">
    <Text
    style={[
        styles.sectionTitle,
        {
        color: isDarkMode ? Colors.white : Colors.black,
        },
    ]}
    >
    {title}
    </Text>
</AmpMaskView>

Unmasking views

To unmask views, add the AmpMaskView tag with the mask property amp-unmask around the section to be unmasked

import { AmpMaskView } from '@amplitude/plugin-session-replay-react-native';

// ...

<AmpMaskView mask="amp-unmask">
    <Text
    style={[
        styles.sectionTitle,
        {
        color: isDarkMode ? Colors.white : Colors.black,
        },
    ]}
    >
    {title}
    </Text>
</AmpMaskView>
0.3.0

8 months ago

0.2.7

9 months ago

0.2.6

10 months ago

0.2.9

8 months ago

0.2.8

9 months ago

0.4.1

6 months ago

0.3.2

7 months ago

0.2.3

12 months ago

0.4.0

6 months ago

0.3.1

7 months ago

0.2.2

12 months ago

0.2.5

11 months ago

0.3.3

6 months ago

0.2.4

12 months ago

0.2.1

1 year ago

0.2.0

1 year ago