From a5cc4cdc6a83ecdf50118bdf85104d646e593252 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Fri, 13 Mar 2026 21:48:19 +0100 Subject: [PATCH] Also wrap children in a container if a RotatableIcon is not supposed to rotate This repairs a bug introduced with PR #3404 by repairing previous behaviour of always having a container that get's styled with the container class. --- src/components/Camera/RotatableIconWrapper.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Camera/RotatableIconWrapper.tsx b/src/components/Camera/RotatableIconWrapper.tsx index 9cb34945e4..77fbbab283 100644 --- a/src/components/Camera/RotatableIconWrapper.tsx +++ b/src/components/Camera/RotatableIconWrapper.tsx @@ -1,6 +1,7 @@ import type { PropsWithChildren } from "react"; import React from "react"; import type { ViewStyle } from "react-native"; +import { View } from "react-native"; import DeviceInfo from "react-native-device-info"; import type { AnimatedStyle } from "react-native-reanimated"; import Animated from "react-native-reanimated"; @@ -18,7 +19,11 @@ const RotatableIconWrapper = ( { containerClass, }: Props ) => { if ( isTablet || !rotatableAnimatedStyle ) { - return children; + return ( + + {children} + + ); } return (