4 ms·
Will this work for React Native?
by chrisco255 10y ago
Will this work for React Native?
- tannerlinsley 10y agoYou should try and let me know!
- amelius 10y agoPerhaps a stupid question but why is there a compatibility gap between React Native and React Browser? As an outsider, I get the impression that React Native is an unfinished product.
- fermuch 10y agoMost of these projects use CSS or the DOM to provide animations, which aren't available on react-native. Usually, all compatibility problems between the two come from that.
- amelius 10y agoOk, but why doesn't React Native provide a compatibility layer for CSS then?
- chrisco255 10y agoIt's just CSS-like syntax for describing styles. They don't claim to be compatible with CSS. But if you already know CSS, it's super intuitive. However, not every CSS property is available.
- chrisco255 10y agoNot at all. React Native renders native elements, so CSS does not exist, just a CSS-like syntax that maps to native styles on Android and iOS. React Native is finished enough to do mature apps in, as Facebook is already using it in production on their mobile app, ads app, Instagram, etc. Other companies using it include Baidu, Tesla, Wal-Mart, AirBnb: https://facebook.github.io/react-native/showcase.html https://facebook.github.io/react-native/showcase.html It's certainly an evolving product and not every native function (such as video recording) is available as an easy-to-use component. In those cases, you can use a 3rd party NPM component or write your own Java/ObjC and link it in with your own custom component. Even if you have to write a little bit of Java/ObjC, it's a huge time saver.
- Wintamute 10y agoAs far as I can tell this lib is just animating props, so its up to you what you do with those changing props ... rendering to DOM or native shouldn't make a difference?
- tannerlinsley 10y agoJust to confirm, React-Move DOES WORK in react-native!!! :)