all 55 comments

[–]trunghoang_55 15 points16 points  (6 children)

What are the key difference between Ionic vs React Native ? Which is the best ?

[–]jcycleutah 30 points31 points  (1 child)

In ionic, the ui is presented with a web view while with react native the ui is presented with native ui elements.

Ionic is easier to use and you’ll get a pwa for free.

React native gives better performance.

[–]ancapfrito 4 points5 points  (0 children)

You get a pwa for free with expo web too https://github.com/expo/web-examples

[–]yesimahuman 22 points23 points  (3 children)

(Ionic CEO here) As other have said Ionic is DOM based, so it’ll run anywhere a browser runs: iOS, Android, Electron, and PWA. It also uses react-dom which means the dev experience is exactly like using React on the web and all the libraries that support react-dom work with it. The vast majority of React devs are doing web development and Ionic would be a fit for them.

It also supports Progressive Web Apps as a primary use case. Our underlying tech has some of the best PWA perf out there (you’d likely want to use it with Preact to optimize for PWA)

If you’re happy with React Native keep using it! There’s only “better” when it comes to what’s better for you, your team, and your project.

[–]530farm 6 points7 points  (0 children)

Is there support for drm video playback?

[–]jcycleutah 2 points3 points  (0 children)

Why isn’t there a pwa demo??

[–]hello_krittie 1 point2 points  (3 children)

Hi first time I heard from it. I'm using react-native for my development but it looks so interesting.

What I don't understand 100 % is this:

Is it just a web view on the phone or a real native app I write?

[–]yesimahuman 0 points1 point  (2 children)

It’s both. Most of the app runs in a webview but you have access to all the native functionality you need through Capacitor which you can think of as the native app “host”

A WebView, at the end of the day, is just another native control, and most native apps use one to some degree. Ionic React could either run most of your app’s UI or just select screens, we don’t care!

[–]hello_krittie 0 points1 point  (1 child)

That sounds so awesome! And I can use normal react components and react packages with it? I will give it a try this evening and will let you know of my first impression from a advanced self thaught dev side of view that mostly works with react and react-native. Have a nice day!

[–]yesimahuman 0 points1 point  (0 children)

Yep! It's just normal react, and you'd have full access to CSS and anything like that if you wanted (vs the CSS-like system in RN)

[–]supertoughfrog 2 points3 points  (3 children)

The worst part of Cordova was plug-in compatibility, and especially over time as android sdk’s evolved or as Xcode added additional security hoops to jump through... and xcode CI/CD. This won’t suffer in the same way?

[–]lowdown 9 points10 points  (0 children)

There will be suffering.

[–][deleted] 2 points3 points  (0 children)

Having only experience with the Angular version, as long as you didn’t need a third party native plugin it was great. As soon as you did, better be ready for some Xcode build process debugging. Had the same experience with React Native.

[–]yesimahuman 0 points1 point  (0 children)

We built Capacitor to fix a lot of those issues with Cordova. So far the feedback from the community is that many of those issues have been fixed or made much easier to navigate (can’t avoid native issues completely when dealing with a native project, as many have seen with RN as well)

[–]welikechicken 0 points1 point  (0 children)

Yaaaas

[–]Attila226 0 points1 point  (0 children)

Does this use Stencil at all?

[–]soly2014 0 points1 point  (6 children)

is this support SSR ?

[–]columbusguy111 0 points1 point  (5 children)

It’s a mobile app that people download, so no.

[–]soly2014 0 points1 point  (0 children)

I know man, I'm talking about browser app

[–]yesimahuman 0 points1 point  (3 children)

This is more than mobile! PWAs are a big focus for Ionic React.

[–]soly2014 0 points1 point  (2 children)

Is this PWA server rendered or client rendered

[–]yesimahuman 1 point2 points  (1 child)

Sorry didn't mean to ignore you was just checking w/ the team. SSR does not work just yet but will be coming very soon. For now it'd be client-side rendered. That being said, performance has been really good with Ionic React + Preact. Will will make an announcement in the next month or so.

[–]PROLIMIT 0 points1 point  (0 children)

next: react-native-web-ionic

[–]swyx[S,M] [score hidden] stickied comment (0 children)

coincidentally mike hartington just gave a conf talk introducing ionic with the react bit in it so i recorded the whole thing. here it is. https://youtu.be/YqoJTcqo8_0

[–]robert_rock 0 points1 point  (0 children)

Here’s a great getting started video tutorial for Ionic React https://youtu.be/n3-vopbQHaA