ivopr / tamagui-expo

An Expo template with Tamagui
270 stars 22 forks source link

Failed prop type: Invalid props.style key `cursor` supplied to `Text` #20

Closed ogmzh closed 1 year ago

ogmzh commented 1 year ago

Hi there, I cloned your tamagui demo and am getting the following error from the title. Attached a screenshot also. Got an idea what I might've done wrong building the app since cursor in react-native css is an invalid prop? image

ivopr commented 1 year ago

Hey there @zhGio, that's exactly it. there's a set of style keys that won't work and will either not be implemented (such as cursor, i think) and others that eventually make it through (like flexGap, that came with RN 0.71 if I'm not wrong).

ogmzh commented 1 year ago

But how do i handle this error or prevent it from popping up all the time? Bear in mind I just cloned your repo and ran it :smile:

ivopr commented 1 year ago

@zhGio as React Native doesn't support cursors, just don't use it (cursor prop). If your app is for mobile and web, as mentioned in the readme, probably your best choice would be the official tamagui starter

ogmzh commented 1 year ago

Turns out this was some mess on my WSL running multiple expo apps and cleaning expo cache and rebuilding the tamagui solved it :)