forked from Instabug/Instabug-React-Native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native.config.js
30 lines (30 loc) · 1.14 KB
/
react-native.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
dependency: {
platforms: {
ios: {},
android: {
},
},
hooks: {
postlink: 'node node_modules/instabug-reactnative/link_bridge.js'
},
},
commands: [
{
name: 'add-instabug',
func: () => {
const exec = require('child_process').exec;
require('./link_gradle');
exec("ruby ./node_modules/instabug-reactnative/autolink.rb || echo \"Ruby doesn't exist, if you're building this for Android only, then feel free to ignore this error, otherwise please install Ruby and run 'react-native link instabug-reactnative' again\"");
},
},
{
name: 'remove-instabug',
func: () => {
const exec = require('child_process').exec;
require('./unlink_gradle');
exec("ruby ./node_modules/instabug-reactnative/autounlink.rb || echo \"Ruby doesn't exist, if you're building this for Android only, then feel free to ignore this error, otherwise please install Ruby and run 'react-native link instabug-reactnative' again\"");
},
},
],
};