To better customize the integration we encourage you to clone this repo and use the documentation for Java, Kotlin, ObjC and Swift
In particular, we encourage you to customize the files android/src/res/values/colors.xml
and android/src/res/layouts/*.xml
for android and ios/RNKhenshin.m
and ios/views/*
for iOS.
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
},
},
},
};