3 ms·
My experience with React Native was that it doesn't consistently use native UI components, it uses UIViews that people have cobbled together into their own repl
by wlesieutre 9y ago
My experience with React Native was that it doesn't consistently use native UI components, it uses UIViews that people have cobbled together into their own replications of varying quality.
So if you want a big grid of items, you're not using a UICollectionView, you're reimplementing it yourself or finding someone else's attempt at that.
Maybe this is because a UICollectionView doesn't have an identical counterpart on Android so it's easier to just redo it from scratch? But I'd be surprised if the performance of these things is as good as the real native ones, even if they make it out of UIViews.
My other big complaint is that it doesn't help you with UI size classes. iOS apps change their layout depending on (generally) whether you're on an iPad (fullscreen / large split), or iPhone (and iPad small split, which is iPhone sized but much taller). The two weird exceptions being the iPad Pro having two full sized splits, and the Plus sized phones acting sort of iPad-like in landscape view.
Anyone have an example of a React Native app that follows those conventions correctly? Last I checked the Facebook app (which I assume is something of a canonical example) doesn't even support split screen, and iOS 9 came out in 2015.
This was a year or so ago that I was poking around at it, things may have improved since then?
- andrewingram 9y agoThe main Facebook app isn't React Native (though parts of it might be)
- wlesieutre 9y agoAh, interesting. I just assumed that's what they made it for.