docusaurus-plugin-react-native-web

1.0.0 • Public • Published

docusaurus-plugin-react-native-web

A simple Docusaurus plugin that adds support for react-native-web to Docusaurus V2.

Installation

First, install the package:

npm install --save docusaurus-plugin-react-native-web

Then add it to your Docusaurus plugins in docusaurus.config.js:

module.exports = {
  ...
  plugins: [
    'docusaurus-plugin-react-native-web'
  ]
}

How it works

All the plugin does is modify the Webpack configuration to rewrite react-native to react-native-web, by adding the following:

resolve: {
  alias: {
    'react-native': 'react-native-web'
  }
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i docusaurus-plugin-react-native-web

      Weekly Downloads

      75

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      1.54 kB

      Total Files

      3

      Last publish

      Collaborators

      • andrewsnowden