0.3.4 • Published 5 years ago

@ssr-coin/react-native-web v0.3.4

Weekly downloads
3
License
-
Repository
github
Last release
5 years ago

ssr-coin + React Native Web = :heart:

@ssr-coin/react-native-web

Use ssr-coin with React Native Web.

Usage

Install @ssr-coin/react-native-web.

$ npm install @ssr-coin/react-native-web

The plugin is automatically loaded and the view property of your page configs is now rendered with React Native Web.

Example

// ./example/pages/hello-native-web.page.js

import React from 'react';
import { StyleSheet, Text, View } from 'react-native';

class App extends React.Component {
  render() {
    return (
      <View style={styles.box}>
        <Text style={styles.text}>Hello from native web!</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  box: { padding: 10 },
  text: { fontWeight: 'bold', color: 'green' },
});

export default {
  route: '/',
  view: App,
//doNotRenderInBrowser: true,
};