Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pocorall/reactoid

Reactive Android with type-safety.
https://github.com/pocorall/reactoid

Last synced: about 1 month ago
JSON representation

Reactive Android with type-safety.

Awesome Lists containing this project

README

        

# Reactive Android with type-safety

Reactoid provides two-way data binding on Android, similar to what AngularJS or React does. For example, given this very short code below, text you typed in the `EditText` is synchronized with the title of the `Button` in real-time.

```scala
val txt = EditText("Hello").textVar
Button(txt() + ", world!")
```

Becuase Reactoid is based on [Scaloid](https://github.com/pocorall/scaloid) and [Scala.Rx](https://github.com/lihaoyi/scala.rx), you can take advantage of sophisticated asynchronous task management, better runtime performance, and type-safety. These are not easily achievable from javascript-based frameworks.

Reactoid is currently in the proof-of-concept stage. Everything can be changed.

## Demos

Go to the `sample` directory and just do `sbt run`

### Prerequisites

* Sbt 0.13.7 or above
* Android build tools 22.0.0 or above
* Android API Level 22
- Level 22 is required for building, while this app retains runtime compatibility from API Level 15. Please refer to `minSdkVersion` property in `AndroidManifest.xml`.