Skip to content

gorhom/docusaurus-react-native-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docusaurus React Native Plugin

A plugin to enable React Native Web and Reanimated on Docusaurus.

Installation

yarn add @gorhom/docusaurus-react-native-plugin -D

Usage

Monorepo

in the file docusaurus.config.js add the following

...
plugins: [
  '@gorhom/docusaurus-react-native-plugin',
  {
    alias: {
      '{MY PACKAGE NAME}': path.resolve(
        __dirname,
        {MY PACKAGE PATH}
      ),
      'react-native-reanimated': path.resolve(
        __dirname,
        {REANIMATED PACKAGE PATH}
      ),
    },
  },
],
...

Standalone

you will need to install the following

yarn add react-native-web react-native-reanimated

then you will need to add the following in the file docusaurus.config.js

...
plugins: [
  '@gorhom/docusaurus-react-native-plugin',
  {
    alias: {
      '{MY PACKAGE NAME}': path.resolve(
        __dirname,
        {MY PACKAGE PATH}
      ),
      'react-native-reanimated': path.resolve(
        __dirname,
        'node_modules/react-native-reanimated'
      ),
    },
  },
],
...

License

MIT

About

A plugin to enable React Native Web and Reanimated on Docusaurus.

Topics

Resources

License

Stars

Watchers

Forks