diff --git a/src/context/OrientationContext.tsx b/src/context/OrientationContext.tsx index 9ebf2a3..551e99a 100644 --- a/src/context/OrientationContext.tsx +++ b/src/context/OrientationContext.tsx @@ -1,13 +1,10 @@ import React, { createContext, useContext, useEffect, useState } from "react"; import { Dimensions } from "react-native"; -// Create the context const OrientationContext = createContext(); -// Custom hook for consuming the context export const useOrientation = () => useContext(OrientationContext); -// Provider component export const OrientationProvider = ({ children }) => { const [orientation, setOrientation] = useState(getOrientation());