Skip to content

Commit

Permalink
Only add displayName to provider if in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
Noitidart committed Aug 29, 2023
1 parent 8f34f22 commit 23fc49e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SafeAreaContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ export const SafeAreaProvider = React.memo(
},
);

SafeAreaProvider.displayName = 'SafeAreaProvider';
if (isDev) {
SafeAreaProvider.displayName = 'SafeAreaProvider';
}

function useParentSafeAreaInsets(): EdgeInsets | null {
return React.useContext(SafeAreaInsetsContext);
Expand Down

0 comments on commit 23fc49e

Please sign in to comment.