react-omni

React framework for that works for both react and react-native

Usage no npm install needed!

<script type="module">
  import reactOmni from 'https://cdn.skypack.dev/react-omni';
</script>

README

react-omni

React framework for that works for both react and react-native

Benefits

  • Uses only components supplied by react-native-web so all components in this library are compatible in both react-native and react

Build Status

npm version
Build Status
NPM

Install

npm install --save react-omni

Install for web

npm install --save react-omni-webpack-plugin
  • Then in your webpack config add the plugin
...
import ReactOmniPlugin from 'react-omni-webpack-plugin'

export default {
  ...,
  plugins: [
    ...,
    new ReactOmniPlugin()
  ]
}

Usage

import { Icon, Text, View } from 'react-omni'

Recompose helpers for styles

  • withStyles