[!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.
yarn add @embrace-io/orientation-change-tracker
Or
npm install @embrace-io/orientation-change-tracker
Add the useEmbraceOrientationLogger to your component
// Import the Embrace log method
import { useEmbraceOrientationLogger } from "@embrace-io/orientation-change-tracker";
const App = () => {
useEmbraceOrientationLogger()
return (
...
);
};