Migrated from nativewind + classnames. tw.style is awesome, but, unlike classnames, it does not accept any value when using object syntax, it only accepts boolean.
Is this intentional? Or can this be changed to match the behavior of classnames?
Example
export type ComponentProps = {
vertical?: boolean;
}
export const Component = (props: ComponentProps) => {
const { vertical } = props
return <View style={tw.style({
'flex-row': !vertical,
'flex-col': vertical,
})}>
<Text>Test1</Text>
<Text>Test2</Text>
</View>
}