Skip to Content

React Native

Install and configure React Native.

Create Project

React Native documentation

Add Canyon and its Configuration

💡
Tip

You need to understand react-native-babel-preset.

npm install babel-plugin-istanbul babel-plugin-canyon -D

Configure Babel Plugin

babel.config.js
module.exports = { presets: ["module:@react-native/babel-preset"], plugins: ["istanbul", "canyon"], };

That’s It

Continue to First Coverage Data - Check.