react-native-link-package
v1.5.5
Published
easy to link/unlink your package
Downloads
9
Readme
react-native-link-package
When you need to do a custom package for react-native, and you have some advanced settings on native as add framework into ios, you will like it.
build status
user guide
step 1: setup commands into package.json
ex: package.json
"rnpm": {
"commands": {
"postlink": "node node_modules/${packageName}/script/postlink",
"postunlink": "node node_modules/${packageName}/script/postunlink"
}
}
stup 2: call react-native-link-package and setup configs
postlink.js
or postunlink.js
const rnlp = require('react-native-link-package');
rnlp.link({
packageName: '',
framework: {
path: '',
files: [],
},
compiles: ['com.facebook.android:account-kit-sdk:4.+'],
permissions: ['RECEIVE_SMS'],
android: {
params: [{
name: 'APP_KEY',
message: 'What\'s your app key for android ?',
}],
activities: {
'com.facebook.accountkit.ui.AccountKitEmailRedirectActivity': {
action: ['VIEW'],
category: ['DEFAULT', 'BROWSABLE'],
},
},
}
ios: {
params: [{
name: 'APP_KEY',
message: 'What\'s your app key for ios ?',
link: () => {},
unlink: () => {},
}],
}
});