Socket
Book a DemoInstallSign in
Socket

@embrace-io/orientation-change-tracker

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@embrace-io/orientation-change-tracker

Allows to track the App orientation

unpublished
latest
Source
npmnpm
Version
3.17.0
Version published
Maintainers
4
Created
Source

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 @embrace-io/orientation-change-tracker
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 (
   ...
  );
};

FAQs

Package last updated on 16 Jan 2024

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