mirror of
https://github.com/hiaaryan/sileo.git
synced 2026-04-26 23:45:50 +03:00
[GH-ISSUE #32] [feature] Add support to React Native #19
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sileo#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dsfkarell on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/hiaaryan/sileo/issues/32
Make this also a React Native compatible library.
Currently, when importing using the standard method described in the documentation, the following error occurs during server rendering:
TypeError: window.matchMedia is not a function (it is undefined)This error occurs because the Toaster component in the sileo library (or one of its dependencies such as Framer Motion) attempts to use the window.matchMedia API to detect system preferences (such as dark mode or motion reduction). See here or here.
Sileo uses browser APIs (such as window.matchMedia and SVG filters) that do not exist in the native React Native environment, so it is not compatible with the native iOS and Android engines.