Remove use of flatten where possible (#9325)

* remove use of flatten where possible

* restore flatten where it says it's needed

* missing utils alpha
This commit is contained in:
Samuel Newman
2025-11-04 15:43:08 +02:00
committed by GitHub
parent 0bcde99025
commit 1b0fbd503e
28 changed files with 67 additions and 97 deletions
+2 -3
View File
@@ -6,7 +6,6 @@ import {HITSLOP_10} from '#/lib/constants'
import {isNative} from '#/platform/detection'
import {
atoms as a,
flatten,
native,
type TextStyleProp,
useTheme,
@@ -233,7 +232,7 @@ export function Item({
onPressOut={onPressOut}
onFocus={onFocus}
onBlur={onBlur}
style={[a.flex_row, a.align_center, a.gap_sm, flatten(style)]}>
style={[a.flex_row, a.align_center, a.gap_sm, style]}>
{typeof children === 'function' ? children(state) : children}
</Pressable>
</ItemContext.Provider>
@@ -260,7 +259,7 @@ export function LabelText({
native({
paddingTop: 2,
}),
flatten(style),
style,
]}>
{children}
</Text>