New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fullstory/react-native

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullstory/react-native

The official FullStory React Native plugin

Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
71K
-12.58%
Maintainers
2
Weekly downloads
 
Created
Source

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.

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

Keywords

react-native

FAQs

Package last updated on 11 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts