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

5.0.2 • Public • Published

React Native Embrace - Orientation Tracker

[!IMPORTANT]

This module requires React Native Embrace SDK.

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.

Install the component

yarn add @embrace-io/orientation-change-tracker

Or

npm install @embrace-io/orientation-change-tracker

Adding the method to your code

Add the useEmbraceOrientationLogger to your component

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

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.20
5.0.10
4.3.00
4.2.00
4.1.20
4.1.10
4.1.00
4.0.11
3.17.50
3.17.40

Package Sidebar

Install

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

Weekly Downloads

1

Version

5.0.2

License

Apache-2.0

Unpacked Size

16.1 kB

Total Files

5

Last publish

Collaborators

  • jonathan.munz
  • facosta
  • vitaliyf
  • themutsi
  • fnewberg