Implement views for the web and for native mobile using [React Native Web](https://github.com/necolas/react-native-web).
npm install @reframe/react-native-webReframe + React Native Web = :heart:
@reframe/react-native-webImplement views for the web and for native mobile using React Native Web.
Add @reframe/react-native-web to your reframe.config.js:
~~~js
module.exports = {
$plugins: [
require('@reframe/react-kit'),
require('@reframe/react-native-web') // npm install @reframe/react-native-web
]
};
~~~
~~~js
// /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
]
};
~~~
~~~js
// /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 (
);
}
}
const styles = StyleSheet.create({
box: { padding: 10 },
text: { fontWeight: 'bold', color: 'green' },
});
export default {
route: '/',
view: App,
};
~~~