Closed karthest closed 1 year ago
@karthest, Thank you for your interest in our react-player.
Currently, our react-player is designed to support React version 18 and above. As a result, features like useSyncExternalStore are implemented specifically for React 18.
We recommend using our player-component for older versions of React.
Thanks for your explaination. player-component works great.
Another question : Is there a way to pack lottie json file and required images into a dotlottie file ? Or how to deal with assets ?
@karthest Yes, packing assets within .lottie
is possible. Our dotlottie-js library may help with your use case. Also, please refer to dotlottie structure to learn more about the dotlottie structure.
Thanks a lot
Node : v14.17.2 React : v17.0.2 Code :
Got this error:
and the lottie animation didn't show as expect.