nandorojo / moti

🐼 The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

Skeleton.Group is broken #275

Closed peterlazar1993 closed 1 year ago

peterlazar1993 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Group appears to be not present on Skeleton.

So on Rendering Skeleton.Group, React throws this error

Error: Element type is invalid: expected a string (for built-in components) or a class/function
(for composite components) but got: undefined. You likely forgot to export your component
from the file it's defined in, or you might have mixed up default and named imports.

Expected Behavior

Skeleton.Group is available.

Steps To Reproduce

  1. import { Skeleton } from 'moti/skeleton';
  2. Render Skeleton.Group

Versions

- Moti: 0.24.1
- Reanimated: 3.0.1
- React Native: 0.71.3

Screenshots

Reproduction

https://github.com/peterlazar1993/skeleton-bug/blob/main/App.js

nandorojo commented 1 year ago

Ah shoot, will be an easy fix.

nandorojo commented 1 year ago

Fixed in 0.24.2