davidhu2000 / react-spinners

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

Feature request: Support React Native #548

Open xdubx opened 2 years ago

xdubx commented 2 years 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 2 years 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 2 years 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 2 years ago

Sounds like a lot of work.