FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3k stars 596 forks source link

AnnounceSlide causes `Error: Text strings must be rendered within a <Text> component.` during expo build #995

Closed mitchellkager closed 1 year ago

mitchellkager commented 1 year ago

https://github.com/FormidableLabs/nuka-carousel/blob/58bb061553ebbb24fad0913817951df2cab64196/packages/nuka/src/announce-slide.tsx#L23

I have successfully used Nuka Carousel throughout my web app. Now when I try to ship to Android, I get error about cannot use a Text component without wrapping in . I see here what it refers to. I try modifying renderAnnounceSlideMessage to return Text object, empty string, null, or undefined but none of these resolve issue.

I know this is a common and often ambiguous issue in apps; I have removed the carousel and directly rendered its children successfully.