From cc1363fea49a6f6ee6bebb8ea9469d166ea5ba0c Mon Sep 17 00:00:00 2001 From: hariroshan Date: Sat, 4 Mar 2023 15:40:31 +0530 Subject: [PATCH] updated module doc --- elm-native/src/Native.elm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/elm-native/src/Native.elm b/elm-native/src/Native.elm index 1424b12..d1f376d 100644 --- a/elm-native/src/Native.elm +++ b/elm-native/src/Native.elm @@ -35,6 +35,20 @@ module Native exposing ) {-| This library should be used with [elm-native](https://github.com/hariroshan/elm-native) JS library + + +We will use [CustomElements](https://guide.elm-lang.org/interop/custom_elements.html) 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. + -} import Html exposing (Attribute, Html) import Html.Attributes exposing (attribute)