Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Docz React Native

Use your React Native components inside docz

We will use react-native-web to make this integration possible. So you might face some issues if you use other react-native modules. Usually, many react-native modules have a web alternative, make sure to alias them too.

Installation

These packages are required to use React Native with docz:

$ yarn add react-native-web react-art

Then alias react-native to react-native-web

// gatsby-node.js
exports.onCreateWebpackConfig = args => {
  args.actions.setWebpackConfig({
    resolve: {
      alias: {
        'react-native': 'react-native-web',
      },
    },
  })
}