davidhu2000 / react-spinners

A collection of loading spinner components for react
https://www.davidhu.io/react-spinners
MIT License
3.01k stars 261 forks source link

Feature request: Support React Native #548

Open xdubx opened 1 year ago

xdubx commented 1 year ago

Is your feature request related to a problem? Please describe. I try to use the spinners in my react native project but it don't work :O

Describe the solution you'd like

Describe alternatives you've considered

Additional context

davidhu2000 commented 1 year ago

I've been thinking about this, but I'm not sure how to go about it yet.

https://necolas.github.io/react-native-web/docs/view/ potentially looks like a viable option. But will need to investigate deeper into how to accomplish it.

React and react-native do have different APIs, so not everything will be compatible like how animations are handled

React uses CSS animation property, whereas React native has an animated API

davidhu2000 commented 1 year ago

everything i've seen seems to be building something for react-native then using react-native-web to make it work for the web. If that's the only way, then the library would need to be rewritten to work for react-native.

xdubx commented 1 year ago

Sounds like a lot of work.