TVke / react-native-tailwindcss

A react-native style system based on TailwindCSS
https://tvke.github.io/react-native-tailwindcss/
MIT License
565 stars 34 forks source link

Cursor plugin? #22

Closed alexluong closed 4 years ago

alexluong commented 4 years ago

Hi, I just found out about this library and really enjoy it so far. Quick question as to the title:

Why is there no cursor plugin?

Here is what I currently have to do:

<Text
  style={[
    t.textBase,
    t.textBlue600,
    Platform.select({
      web: {
        cursor: "pointer",
      },
    }),
  ]}
>
  Hello World
</Text>

Would be cool if this library helps with checking the platform for the end-users!

I'd be happy to dig into the code and contribute myself if you think this can be a good idea. Thank you!

PS: 200th star ⭐

TVke commented 4 years ago

Hi @alexluong

thanks for the 200th star and the reason for no cursor implementation is that it is not useful on a native device. I did not know that react-native-web does accept this style. I would defenatly accept a PR for that.

greetings Thomas

TVke commented 4 years ago

closing this issue as there is no activity for more then 3 months