The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 14:45 UTC
fix(mobile): Android section headers show the collapse arrow when expanded (#33513)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
juccul committed
Nov 14, 2026 at 17:40 UTC
949dc2307498ab3ee4da94570a9f69277aa54c28
1 file changed
+7
-2
apps/mobile/src/components/ui/AppSymbol.android.tsx
+7
-2
@@ -140,6 +140,7 @@ import IconWifiOff from "@tabler/icons-react-native/IconWifiOff";
140
import IconWorld from "@tabler/icons-react-native/IconWorld";
141
import IconX from "@tabler/icons-react-native/IconX";
142
import type { AndroidSymbol, SFSymbol, SymbolViewProps } from "expo-symbols";
143
+import { StyleSheet, View } from "react-native";
144
import { withUniwind } from "uniwind";
145
146
const ANDROID_ICON_BY_SF_SYMBOL = {
@@ -371,16 +372,20 @@ function AppSymbolView(props: AppSymbolViewProps) {
372
return props.fallback ?? null;
373
}
374
374
- return (
375
+ // react-native-svg applies style.transform to its inner path around (0,0), so a
376
+ // rotated icon draws outside its box. Transform a wrapping View instead.
377
+ const transformed = StyleSheet.flatten(props.style)?.transform !== undefined;
378
+ const icon = (
379
<AndroidIcon
380
accessibilityLabel={props.accessibilityLabel}
381
color={props.tintColor}
382
size={props.size}
383
strokeWidth={2}
380
- style={props.style}
384
+ style={transformed ? undefined : props.style}
385
testID={props.testID}
386
/>
387
);
388
+ return transformed ? <View style={props.style}>{icon}</View> : icon;
389
}
390
391
export const SymbolView = withUniwind(AppSymbolView);