Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.11 KB

MANUAL_INSTALATION.md

File metadata and controls

40 lines (31 loc) · 1.11 KB

Manual Instalation

iOS

  1. In the XCode's "Project navigator", right click on your project's Libraries folder ➜ Add Files to <...>
  2. Go to node_modulesrn-workersios ➜ select RNWorkers.xcodeproj
  3. Add RNWorkers.a to Build Phases -> Link Binary With Libraries
  4. Pray and try to compile

Android

  1. Add the following lines to android/settings.gradle:
    include ':rn-workers'
    project(':rn-workers').projectDir = new File(rootProject.projectDir, '../node_modules/rn-workers/android')
  1. Add the compile line to the dependencies in android/app/build.gradle:
    dependencies {
        compile project(':rn-workers')
    }
  1. Add the import and link the package in MainApplication.java:
   
    public class MainApplication extends Application implements ReactApplication {
        @Override
        protected List<ReactPackage> getPackages() {
            return Arrays.<ReactPackage>asList(
                new MainReactPackage(),
                new RNWorkersPackage() // <-- add this line
            );
        }
    }