You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @Saadnajmi, I know that the cursor prop feature is your contribution, and thank you for your great PR!
I understand that maybe it is unnecessary to set it for Text in VisionOS, but sometimes we need to use it for RN Web. So I'm wondering if we can just ignore this prop on Text instead of throwing an error?
EDIT: Fix onto main, which I guess can be picked if it lands? #44563
Ah yeah this is a legitimate bug. We should either allow you to set cursor on Text, or filter it out (presumably by not including it in Text's ViewConfig). I can look into what works in a bit.
Initial testing, this only reproes on the old architecture.
Description
I have noticed that when I set the
cursor: 'pointer'
for theText
component, the app breaks, although it works well forView
.CleanShot.2024-05-14.at.03.51.46.mp4
Steps to reproduce
Set the
cursor: 'pointer'
style prop for theText
component inreact-native
.React Native Version
0.74.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@alantoa/cursor-prop-is-causing-crash-on-text
Screenshots and Videos
CleanShot.2024-05-14.at.03.51.46.mp4
The text was updated successfully, but these errors were encountered: