Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, I believe so. I'm working on an app at the moment which uses ClojureScript on top of React Native. When I finish it I'll write something up. You can see an existing writeup on using React Native with JS here:

http://cmichel.io/lessons-from-building-first-react-native-a...

It basically works by running JS in a separate thread and doing the usual virtual DOM diffing algorithm to determine when to update and swap out native view components. The fact that it uses native UI components is what matters here. You don't have to recreate the behaviors in JS. It simply determines the tree of elements to display, it doesn't do the actual work of displaying them in a canvas. Then the underlying OS will take care of rendering from there.

And then you get the niceness of slicing up data and making network calls in JS or ClojureScript. And if you use re-natal in particular, you get a really simple but powerful application model. You can read about that model here:

https://github.com/Day8/re-frame

I'm sure I'll run into quirks and other weird behavior as I go, but I seriously doubt it will be anywhere near the magnitude of problems you see with JS-canvas frameworks.



Maybe save your judgement once you have successfully deployed your app on multiple platforms and dealt with myriad of issues that arise from your users.


Of course. But you can't deny there are classes of problems you completely dodge by using native UI components instead of a web view, especially when it comes to touch events and scroll accelerations.

I'll shut up now and write something up once I deploy an app to multiple platforms ;)


Sorry, didnt mean to be rude, it's easy to get defensive when talking about your work. I would like to read about your progress.


Not rude at all! I was a little aggressive with the app UI quirks I found.

If anything, your app is a great example that most users don't care or notice non native UIs as much as developers do. It shows the viability of using such a framework. So don't let me get you down, I just enjoy breaking software :)




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

Search: