@react-native-embrace/orientation-change-tracker
TypeScript icon, indicating that this package has built-in type declarations

0.2.13 • Public • Published

React Native Embrace - Orientation Tracker

Core Module Required

This module requires React Native Embrace SDK.

Add Orientation Tracker

Adding Context to Sessions

Embrace can collect basic session data and crashes as you've already seen in the Crash Reporting and Session Reporting sections. Embrace can also collect when your app changes its orientation Here's how you add the Orientation tracker to the session.

Adding the component

Embrace has a separate module for tracking Orientation, to use it you will need to add the Orientation Tracker

Install the component

yarn add @react-native-embrace/orientation-change-tracker
npm install @react-native-embrace/orientation-change-tracker

Adding the method to your code

Add the useEmbraceOrientationLogger to your component

// Import the Embrace log method
import { useEmbraceOrientationLogger } from "@react-native-embrace/orientation-change-tracker";

const App = () => {
  useEmbraceOrientationLogger()
  return (
   ...
  );
};

Readme

Keywords

none

Package Sidebar

Install

npm i @react-native-embrace/orientation-change-tracker

Homepage

embrace.io/

Weekly Downloads

0

Version

0.2.13

License

ISC

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • fnewberg
  • themutsi