Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/co2-git/reactors

View components and APIs that work web, mobile and native!
https://github.com/co2-git/reactors

android desktop electron html5 ios linux osx react react-native reactors web windows

Last synced: 3 months ago
JSON representation

View components and APIs that work web, mobile and native!

Awesome Lists containing this project

README

        

reactors
===


[![npm version](https://badge.fury.io/js/reactors.svg)](https://badge.fury.io/js/reactors)
[![GitHub version](https://badge.fury.io/gh/co2-git%2Freactors.png)](https://badge.fury.io/gh/co2-git%2Freactors)

===

Framework based on [React](https://facebook.github.io/react/) to build cross-platform apps that run web, mobile and desktop.

**To create and run reactors apps, see [reactors-cli](https://github.com/co2-git/reactors-cli)**

# Install

```bash
npm install reactors
```

# Usage

```javascript
import React from 'react';
import {
ListView,
Text,
View,
} from 'reactors';

export default function MyAwesomeComponent() {
return (

One code to rule them all:
{platform}}
/>

);
}
```

View a detailed example [here](https://github.com/co2-git/reactors-cli/blob/master/templates/app/App.js).

# Core Components

- [Image](doc/Components/Image.md)
- [ListView](doc/Components/ListView.md)
- [Link](doc/Components/Link.md)
- [ScrollView](doc/Components/ScrollView.md)
- [Text](doc/Components/Text.md)
- [View](doc/Components/View.md)

# Core APIs

- [Core](doc/API/Core.md)
- [Dimensions](doc/API/Dimensions.md)
- [Gesture](doc/API/Gesture.md)
- [Notifications](doc/Components/Notifications.md)
- [Storage](doc/API/Storage.md)
- [StyleSheet](doc/API/StyleSheet.md)

# Platform dependent code

You can code for a specific platform:

```javascript
switch (Reactors.platform) {
case 'mobile':
// ...
break;
case 'web':
// ...
break;
case 'desktop':
// ...
break;
}
```

# Plugins

Check out Reactors plugin in the `npm` registry. Look for packages starting by `reactors-`.

Some plugins:

- [reactors-file-dialog](https://www.npmjs.com/package/reactors-file-dialog)
- [reactors-form](https://www.npmjs.com/package/reactors-form)
- [reactors-grid](https://www.npmjs.com/package/reactors-grid)
- [reactors-http-request](https://www.npmjs.com/package/reactors-http-request)
- [reactors-router](https://www.npmjs.com/package/reactors-router)