marklawlor / nativewind

React Native utility-first universal design system - powered by Tailwind CSS
https://nativewind.dev
MIT License
4.3k stars 233 forks source link

Flexbox issue : justify-* and items-* are reversed #896

Closed nicodevenv closed 3 weeks ago

nicodevenv commented 3 weeks ago

Describe the bug justify- makes vertical alignments but should be aligned horizontally items- makes horizontal alignments but should be aligned vertically

To Reproduce

import {Text, View} from "react-native";

const StyledView = styled(View);

export default function App() {
    return <StyledView className={`flex-1 items-start justify-end`}>
        <Text>123</Text>
    </StyledView>;
}

Expected behavior The text should be on the top right corner

nicodevenv commented 3 weeks ago

I just understood that we should specify the flex direction first...