Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sergioramos/react-tvml

React bindings to Apple's TVJS and TVML
https://github.com/sergioramos/react-tvml

Last synced: about 2 months ago
JSON representation

React bindings to Apple's TVJS and TVML

Awesome Lists containing this project

README

        

# react-tvml

**this is a very alpha release**

React bindings to Apple's [TVJS and TVML](https://developer.apple.com/library/prerelease/tvos/navigation/)

[![](http://g.recordit.co/qWrCpEb3MQ.gif)](https://cldup.com/u6sOUJLLE9.mp4)
(it's not this slow, click on the gif to see a video)

## install
```bash
$ npm install --save react-tvml
```

## example

[sprice/tvOS-hello-world-example](https://github.com/sprice/tvOS-hello-world-example)

## usage

```js
var React = require('react');
var TVML = require('react-tvml');

var App = React.createClass({
render: function() {
return (

Loading...

);
}
});

TVML.render();
```

## todo (PRs are welcome)

* Most of the code is copied from the react dom renderer. A lot of it needs to be removed and cleaned according to TVML use case
* push vs replace document
* some events
* A **lot** of polish
* Validations: e.g. some components can only be children of some specific components
* consistent code style and linting
* tests

## license

BSD