===
Framework based on React to build cross-platform apps that run web, mobile and desktop.
To create and run reactors apps, see reactors-cli
npm install reactors
import React from 'react';
import {
ListView,
Text,
View,
} from 'reactors';
export default function MyAwesomeComponent() {
return (
<View>
<Text style={{fontWeight: 'bold'}}>One code to rule them all:</Text>
<ListView
dataSource={[
'Android',
'iPhone and iPad',
'Mac OSX',
'Ubuntu and Linux',
'Web browser',
'Windows 10',
]}
renderRow={(platform) => <Text>{platform}</Text>}
/>
</View>
);
}
View a detailed example here.
You can code for a specific platform:
switch (Reactors.platform) {
case 'mobile':
// ...
break;
case 'web':
// ...
break;
case 'desktop':
// ...
break;
}
Check out Reactors plugin in the npm
registry. Look for packages starting by reactors-
.
Some plugins: