diff --git a/docs/linking-libraries-ios.html b/docs/linking-libraries-ios.html index 663f322cd05..5b9b3cae168 100644 --- a/docs/linking-libraries-ios.html +++ b/docs/linking-libraries-ios.html @@ -5,7 +5,7 @@ step will be necessary, but no more than that.

All the libraries we sh the root of the repository. Some of them are pure JavaScript, and you only need to require it. Other libraries also rely on some native code, in that case you'll have to add these files to your app, otherwise the app will throw an -error as soon as you try to use the library.

Here the few steps to link your libraries that contain native code #

Automatic linking #

"rnpm" is a community project that allows linking of native dependencies automatically:

Step 1 #

Install rnpm:

$ npm install rnpm -g

Note: rnpm requires node version 4.1 or higher

Step 2 #

Install a library with native dependencies:

$ npm install library-with-native-dependencies --save

Note: --save or --save-dev flag is very important for this step. rnpm will link +error as soon as you try to use the library.

Here the few steps to link your libraries that contain native code #

Automatic linking #

"rnpm" is a community project that allows linking of native dependencies automatically:

Step 1 #

Install rnpm:

$ npm install rnpm -g

Note: rnpm requires node version 4.1 or higher

Step 2 #

Install a library with native dependencies:

$ npm install <library-with-native-dependencies> --save

Note: --save or --save-dev flag is very important for this step. rnpm will link your libs based on dependencies and devDependencies in your package.json file.

Step 3 #

Link your native dependencies:

$ rnpm link

Done! All libraries with a native dependencies should be successfully linked to your iOS/Android project.

Manual linking #

Step 1 #

If the library has native code, there must be a .xcodeproj file inside it's folder. Drag this file to your project on Xcode (usually under the Libraries group