Elm native allows elm developers to build mobile application using NativeScript
Go to file
2023-03-04 19:48:01 +05:30
.github Create FUNDING.yml 2023-02-24 17:56:47 +05:30
.vscode inital commit 2023-01-05 13:27:26 +05:30
app added Native documentation 2023-03-04 18:14:56 +05:30
App_Resources inital commit 2023-01-05 13:27:26 +05:30
doc added gifs and updated readme 2023-03-04 14:37:36 +05:30
elm-native added docs 2023-03-04 19:48:01 +05:30
elm-native-js added Native documentation 2023-03-04 18:14:56 +05:30
.editorconfig inital commit 2023-01-05 13:27:26 +05:30
.gitignore added layouts 2023-01-07 13:37:26 +05:30
elm-code-wrap-loader.js added elm deps 2023-01-05 13:46:48 +05:30
elm.json added dialogs 2023-02-26 16:51:44 +05:30
LICENSE added license 2023-03-04 15:37:44 +05:30
nativescript.config.ts inital commit 2023-01-05 13:27:26 +05:30
package.json added Native documentation 2023-03-04 18:14:56 +05:30
README.md added Native documentation 2023-03-04 18:14:56 +05:30
references.d.ts added typescript 2023-01-05 13:34:51 +05:30
tsconfig.json added typescript 2023-01-05 13:34:51 +05:30
webpack.config.js runs in ios 2023-01-06 19:21:13 +05:30
yarn.lock added image picker code 2023-01-17 12:45:54 +05:30

Elm Native

Build mobile apps with elm using NativeScript API. elm/http works with this library as well!

We can build simple apps like counter

Counter

or something like a blog

Counter

or even complex app with page transitions, modals, dialog, and much more!

Car details

How it works

We will use CustomElements feature to create mobile UI elements with nativescript objects and control the nativescript object from elm.

Here's a simple representation of how UI elements are created

Elm -> Nativescript -> Mobile

When we listen for / receive an event,

Mobile -> Nativescript -> Elm

Consider this flow while building an application. This will help you to overcome performance issues if you encounter them.

Use the attributes from Native.Attributes and NOT Html.Attributes

Supported Features

  • Dialog
  • Page transitions animations
  • Modal page
  • Execution of OS specific property assignment and Native code (Be careful)
  • Navigating page back and forth using frame functions
  • Has bindings for all Nativescript UI elements
  • Calling methods/setting attributes in the event object within elm (Will be improved in future)
  • Simple and complex listviews templates and much more

More features will be added soon.

TODO

  • Write docs for attributes
  • Convert raw js into rescript
  • Build a starter template with elm support with bindings pre-installed
  • Support animations
  • Split project into different modules, publish library in elm and npm
  • Use taskport to build typesafe nativescipt api calls.