Skip to main content

Manual linking

If you want to link library manually, you can do it this way.


Add the following lines of code to your settings.gradle file:

include ':@shakebugs_react-native-shake'
project(':@shakebugs_react-native-shake').projectDir = new File(rootProject.projectDir, '../node_modules/@shakebugs/react-native-shake/android')

Then, include the following dependency to the app-level build.gradle file:

dependencies {
implementation project(':@shakebugs_react-native-shake')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules

Update the getPackages() method:
@Override protected List<ReactPackage> getPackages() {
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new ShakePackage());
return packages;


  1. Open your project in Xcode by clicking project's .xcodeproj file.
  2. Copy RNShake.xcodeproj from $rootDir/node_modules/@shakebugs/react-native-shake/ios/ to the Libraries folder of your project.
  3. Drag libRNShake.a from the Libraries / RNShake / Products folder to Link Binary With Libraries in the Build Phases section.