0.3.2 • Published 5 years ago

@reframe/react-native-web v0.3.2

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

Reframe + React Native Web = :heart:

@reframe/react-native-web

Implement views for the web and for native mobile using React Native Web.

Usage

Add @reframe/react-native-web to your reframe.config.js:

module.exports = {
    $plugins: [
        require('@reframe/react-kit'),
        require('@reframe/react-native-web') // npm install @reframe/react-native-web
    ]
};

Example

// /plugins/react-native-web/example/reframe.config.js

module.exports = {
    $plugins: [
        require('@reframe/react-kit'),
        require('@reframe/react-native-web') // npm install @reframe/react-native-web
    ]
};
// /plugins/react-native-web/example/pages/hello-native-web.config.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,
};
0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.13-next.0

6 years ago

0.1.12

6 years ago

0.1.12-next.0

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago