To better customize the integration we encourage you to clone this repo and use the documentation for Java, Kotlin, ObjC and Swift
If you are using an m1 or m2 Macos please run this in a terminal using Rosetta
Run pod install
cd ios
pod install
cd ..
include ':react-native-khenshin'
project(':react-native-khenshin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-khenshin/android')
implementation 'com.browser2app:khenshin:+'
implementation project(':react-native-khenshin')
allprojects {
repositories {
....
maven {
url 'https://dev.khipu.com/nexus/content/repositories/khenshin'
}
...
}
}
...
import com.browser2app.rn.RNKhenshinPackage;
...
public MainApplication getMainApplication() {
return this;
}
...
@Override
protected List<ReactPackage> getPackages() {
//...
packages.add(new RNKhenshinPackage(getMainApplication()));
return packages;
}
// react-native.config.js
module.exports = {
dependencies: {
'react-native-khenshin': {
platforms: {
android: null, // disable Android platform, other platforms will still autolink if provided
},
},
},
};