1.5.0 • Published 6 days ago

@fullstory/react-native v1.5.0

Weekly downloads
629
License
MIT
Repository
github
Last release
6 days ago

FullStory React Native Plugin

CircleCI

FullStory's React Native plugin exposes access to the FullStory Native Mobile SDK from within a React Native app. This plug-in is intended to be used in conjunction with FullStory for Mobile Apps.

Quick Links

Install the React Native plugin

with npm

npm i @fullstory/react-native --save

with yarn

yarn add @fullstory/react-native

with expo-cli

expo install @fullstory/react-native

Configuring the babel plugin

@fullstory/babel-plugin-react-native is automatically included as a dependency to the FullStory React Native plugin. Please refer to the babel plugin's README.md for information on how to configure it.

@fullstory/babel-plugin-annotate-react is automatically included as a dependency to the FullStory React Native plugin. Please refer to the babel plugin's README.md for information on how to configure it for React Native.

Importing the React Native plugin

In order to use the FullStory Native Mobile SDK from within a React Native app, importing the React Native plugin is all that is required.

Importing Example

Here's an example of importing the SDK in a React Native app.

import FullStory from '@fullstory/react-native';

Configuring for Expo

This package cannot be used in the "Expo Go" app because it requires custom native code.

Add the config plugin to the plugins array of your app.json or app.config.json

{
  "expo": {
    "plugins": [
      [
        "@fullstory/react-native",
        {
          "version": "1.28.0",
          "org": "ABC"
        }
      ]
    ]
  }
}

Plugin Props

Plugins allow for extra customization by passing in an object with properties. If no extra properties are added, defaults will be used. Certain properties are required.

PropertyPlatformRequiredDescription
versionAndroid & iOSFullStory for Mobile Apps plugin version
orgAndroid & iOSYour assigned organization ID
hostAndroid & iOSOptional. Defaults to: fullstory.comThe server url your sessions are sent to
recordOnStartAndroid & iOSOptional. Defaults to: trueSetting RecordOnStart to false will prevent data capture until you explicitly invoke FS.restart() API.
enabledVariantsAndroidOptional. Defaults to: releaseSpecifies which variants to apply FullStory instrumentation
logLevelAndroidOptional. Defaults to: infoCaptures any log statements at or above the specified level
logcatLevelAndroidOptional. Defaults to: offCaptures any Logcat messages at or above the specified level
1.5.0

6 days ago

1.4.2

3 months ago

1.4.1

4 months ago

1.4.0

5 months ago

1.2.0

9 months ago

1.3.0

8 months ago

1.2.1

9 months ago

1.1.2

12 months ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago