Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Latest commit

 

History

History

react-native

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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',
      },
    },
  })
}