Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pocorall/reactoid
- Owner: pocorall
- License: other
- Created: 2015-03-27T14:33:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T02:12:39.000Z (over 9 years ago)
- Last Synced: 2024-10-15T10:26:38.063Z (3 months ago)
- Language: Scala
- Homepage: http://reactoid.org
- Size: 270 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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`.