Hacker Newsnew | past | comments | ask | show | jobs | submit | jfilter's commentslogin

It's a reference to this xkcd: https://xkcd.com/2347/

I created a personalized adaption: https://twitter.com/fil_ter/status/1465802464716890113 :)


Haha sorry, I didn't get it.


since 2015.


Wide-scale adoption and promotion of open source software in the industry (e.g. Microsoft, Facebook, Google)


>With React and React Native, your web app can share most its logic with your iOS and Android apps, but the view layer needs to be implemented separately for each platform.

As far as I understand, you don't need to do this in react-native. Only when you want to use some special features. Or am I missing something?


It depends. In our current app, all we needed to implement separately was the margin for the status bar, literally two lines of code.

But as we move further, we'll be looking into making the versions for both platform feel truly native, and that will require some changes to navigation components and the overall navigation paradigm (tabs vs. drawer, screens vs. cards etc.).

The platform differences are as much about design as about code, and I don't see how you can escape that work with any cross-platform framework. But React Native makes it very easy to implement in a way that lets us share all but a few components.


With RN, if you want your app to look like a real native app, you have to implement things separately for iOS and Android. Eg the default navigation component animates differently than native iOS, and there is an extra component that uses the native UINavigationBar, but with that you need to manage the iOS navigation stack separately.


The description is obtuse, but I think they mean separately between web and mobile, not iOS and Android.

It'd mean this framework is supposed to be a higher level React Native implementation: that you can use everywhere you want to use React, not just mobile.


> Or am I missing something?

Yes, it's not possible. You can't just use your React code as React Native. There are many small API differences.


Parent is not saying (or asking whether) you can "use your React code as React Native".

They are saying that from what they know, if you use React Native, you shouldn't have to recode your UI layer for different platforms.

Which is true, but the point parent misses, is that it might not be necessary if you just want a cross platform app, but it is needed if you also want it to behave more like each platform users are used to.


What are different platforms referring to here? The quoted sentence sounds like it means web vs apps but you (and the parent?) make it seem like we're talking about Android vs iOS.


And Windows vs OS X vs Linux.


Parent was saying "you don't need to do this in react-native" regarding the following sentence:

> With React and React Native, your web app can share most its logic with your iOS and Android apps, but the view layer needs to be implemented separately for each platform.

This is referring to web vs apps, in other words React vs React Native. That's the context of my reply. They are not talking about the (optional) differences within a React Native app to fit different platforms.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: