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
I was getting an error on typescript saying (props:any) => Elements is not compatible with ReactNode. I tried to use our custom Text component but also with the one from react-native and was still getting the error.
If you think the change is valid, let me know and i can submit the Pr or let you do it if you prefer :)
also not sure for a generic version of it and a compatible one with web but for the UL component i'm doing this and it seems to be working for us (Box is a View):
constUL=({ children }: PropsWithChildren<{}>)=>{return(<Box>{Children.map(children,(child)=>(<Textvariant="body"mb="xsmall">•{child}</Text>))}</Box>)}
The text was updated successfully, but these errors were encountered:
Hi, not sure if it's something that needs to change in the repo or not but i had to change the types in the package for the MDXComponents to :
the current types expect components to be
Record<string, React.ReactNode>
but when i was passing something like :I was getting an error on typescript saying
(props:any) => Elements
is not compatible with ReactNode. I tried to use our customText
component but also with the one fromreact-native
and was still getting the error.If you think the change is valid, let me know and i can submit the Pr or let you do it if you prefer :)
also not sure for a generic version of it and a compatible one with web but for the
UL
component i'm doing this and it seems to be working for us (Box
is aView
):The text was updated successfully, but these errors were encountered: