Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fullstory/babel-plugin-react-native

fullstorydev267.2kMIT1.4.0

The official FullStory React Native babel plugin

babel, plugin, fullstory, react, react-native

readme

FullStory React Native Babel Plugin

CircleCI

FullStory's React Native babel plugin performs transformations to enable FullStory privacy state declarations on all React Native controls, in addition to adding support for capturing click events.

This plugin does not replace @fullstory/babel-plugin-annotate-react, which annotates React components with stable attributes to help with element identity.

This plugin should only be used in conjunction with @fullstory/react-native.

This plug-in is intended to be used in conjunction with FullStory for Mobile Apps. For more information, please see this getting started guide. Email mobile-support@fullstory.com for additional help.

Install the React Native babel plugin

Note: this babel plugin is automatically installed as a dependency to @fullstory/react-native

with npm

npm i @fullstory/babel-plugin-react-native --save

with yarn

yarn add @fullstory/babel-plugin-react-native

Enabling the React Native plugin

The FullStory React Native babel plugin is required to be enabled in order for FullStory to fully work with React Native.

babel.config.js Example

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: ['@fullstory/react-native'],
};

changelog

Changelog

1.4.0

Added support for React Native 78.

1.3.1

Fixed an issue with New Architecture detection in React Native 77+.

1.3.0

Support click events for React Native 74 on Android.

1.2.1

Fixed a bug that causes a runtime crash on Expo iOS New Architecture.

1.2.0

Add support for 'Select Entire Screen' for React Navigation & React Native Navigation.

1.1.0

Added support for Fabric, React Native's new rendering system.

1.0.3

Fixed an issue with React Native 71+ that prevented privacy rules from working on Text components.

1.0.2

Additional work around for an intermittent issue in the click handler when running with the Metro server.

1.0.1

Work around an intermittent issue in the click handler when running with the Metro server.

1.0.0

1.0.0 release!

0.9.5

Added the unmodified source code. Added support for fsAttribute, fsTagName, data-component, data-element, and data-source-file.

0.9.3

Added README information about the private beta.

0.9.2

Support for press handling on Android.

0.9.1

README update.

0.9.0

Initial Release.