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

[v4] Class name priority is incorrect #861

Open JinYuSha0 opened 1 month ago

JinYuSha0 commented 1 month ago

Describe the bug Class name priority is incorrect

To Reproduce Steps to reproduce the behavior:

const Home: React.FC<Props> = () => {
  return (
    <Layout>
      <View className="w-10 h-10 bg-rose-300 bg-[#0000FF]" />
    </Layout>
  );
};

Expected behavior The view should be blue because bg-[#0000FF] is sorted behind.

Screenshots image

JinYuSha0 commented 1 month ago

pr: #862