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
Set up project with expo@51.0.28 (should have "@expo/html-elements": "^0.4.2")
Set up Gluestack with npx gluestack-ui@latest init
Run npx gluestack-ui@latest add heading
See TS error on line 54 of components/ui/heading/index.tsx:
Type 'ForwardedRef<typeof Text | Component<TextProps, any, any>>' is not assignable to type 'LegacyRef<typeof Text> | undefined'.
Type 'MutableRefObject<typeof Text | Component<TextProps, any, any> | null>' is not assignable to type 'LegacyRef<typeof Text> | undefined'.
Type 'MutableRefObject<typeof Text | Component<TextProps, any, any> | null>' is not assignable to type 'RefObject<typeof Text>'.
Types of property 'current' are incompatible.
Type 'typeof Text | Component<TextProps, any, any> | null' is not assignable to type 'typeof Text | null'.
Property 'prototype' is missing in type 'Component<TextProps, any, any>' but required in type 'typeof Text'.ts(2322)
gluestack-ui Version
3.3.1
Platform
Expo
React Native CLI
Next
Web
Android
iOS
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Adding the
Heading
component results in type errors on forwarded refsCodeSandbox/Snack link
https://codesandbox.io/p/devbox/hrlzf2
Steps to reproduce
expo@51.0.28
(should have"@expo/html-elements": "^0.4.2"
)npx gluestack-ui@latest init
npx gluestack-ui@latest add heading
components/ui/heading/index.tsx
:gluestack-ui Version
3.3.1
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: