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