diff --git a/apps/kitchen-sink/src/features/home/screen.tsx b/apps/kitchen-sink/src/features/home/screen.tsx index 5e8dad9bb1b..a53633c7a15 100644 --- a/apps/kitchen-sink/src/features/home/screen.tsx +++ b/apps/kitchen-sink/src/features/home/screen.tsx @@ -1,4 +1,4 @@ -import { variableToString } from '@tamagui/core' +import { styled, variableToString } from '@tamagui/core' import { ChevronRight, Moon, Sun } from '@tamagui/lucide-icons' import { ScrollView } from 'react-native' import { UseLinkProps, useLink } from 'solito/link' @@ -18,6 +18,20 @@ import { import { useThemeControl } from '../../useKitchenSinkTheme' +const BetaButton = styled(Button, { + debug: 'verbose', + + variants: { + primary: { + true: { + pressStyle: { + backgroundColor: 'red', + }, + }, + }, + }, +}) + export function HomeScreen() { return ( @@ -26,6 +40,8 @@ export function HomeScreen() { Demos + test + Welcome to the Tamagui Kitchen Sink! diff --git a/packages/web/src/helpers/getSplitStyles.tsx b/packages/web/src/helpers/getSplitStyles.tsx index b4fe8f15cba..788708698f3 100644 --- a/packages/web/src/helpers/getSplitStyles.tsx +++ b/packages/web/src/helpers/getSplitStyles.tsx @@ -622,6 +622,14 @@ export const getSplitStyles: StyleSplitter = ( viewProps[key] = props[key] ?? val } + // have to run this logic again here + const isHOCShouldPassThrough = staticConfig.isHOC && isMediaOrPseudo + if (isHOCShouldPassThrough && !(key in usedKeys)) { + usedKeys[key] = 1 + viewProps[key] = val + continue + } + // pseudo if (isPseudo) { if (!val) continue