codelv / enaml-native

Build native mobile apps in python with enaml
https://codelv.com/projects/enaml-native/
MIT License
259 stars 21 forks source link

Transcrypt React Native vs Enaml Native #70

Closed kiwi0fruit closed 6 years ago

kiwi0fruit commented 6 years ago

How do you compare Transcrypt + React Native vs Enaml Native? Example of React Native in Transcrypt is here.

frmdstryr commented 6 years ago

The example given is for ReactJS, not react native, but assuming transcrypt did also work with RN theres still a major difference in library support.

Enaml native uses cross compiled CPython. Therefore any python libraries, including those with c-extensions, can be used as long as they can also be cross compiled (using conda mobile).

From what I understand, Transcript compiles python code to js and thus will not support using any existing python libraries with c extensions (ex numpy, lxml, crypto...).

Hope that helps.

kiwi0fruit commented 6 years ago

I guess RN example is here: https://github.com/metamarcdw/react-native-transcrypt

I more or less understand the differences:

Which way you think more vitable or convenient in the future?

frmdstryr commented 6 years ago

I think which is more viable/convenient depends on your needs and whether you prefer react or enaml.

Personally, I avoid transpilers (except cython) because of library incompatibilities that often come with.