Installation
Set up the development environment
To setup the React Native development environment folow the steps in this guide.
Add the library to your application
To add the chatvisor module into your application just install it using npm:
npm install react-native-teamviewer-engage --save
Android
Make sure your minSdkVersion
is equal or greater than 23
.
To resolve the android library, add the following lines to the gradle file of your application:
repositories {
...
jcenter()
maven { url "https://.../android" }
maven { url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" }
}
iOS
Add the lines below to your Podfile
. Also make sure to disable Flipper since it will not work when use_frameworks!
is set.
use_frameworks!
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
After changing the Podfile
run the following command inside the folder containing the Podfile
.
pod install