update website

This commit is contained in:
Travis CI
2015-12-20 12:53:54 +00:00
parent cc5c47420c
commit 9118fee0d3
+1 -1
View File
@@ -5,7 +5,7 @@ step will be necessary, but no more than that.</p><p><em>All the libraries we sh
the root of the repository. Some of them are pure JavaScript, and you only need
to <code>require</code> it. Other libraries also rely on some native code, in that case
you&#x27;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.</em></p><h2><a class="anchor" name="here-the-few-steps-to-link-your-libraries-that-contain-native-code"></a>Here the few steps to link your libraries that contain native code <a class="hash-link" href="#here-the-few-steps-to-link-your-libraries-that-contain-native-code">#</a></h2><h3><a class="anchor" name="automatic-linking"></a>Automatic linking <a class="hash-link" href="#automatic-linking">#</a></h3><p>&quot;<a href="http://github.com/rnpm/rnpm" target="_blank">rnpm</a>&quot; is a community project that allows linking of native dependencies automatically:</p><h4><a class="anchor" name="step-1"></a>Step 1 <a class="hash-link" href="#step-1">#</a></h4><p>Install <code>rnpm</code>:</p><div class="prism language-javascript">$ npm install rnpm <span class="token operator">-</span>g</div><p><strong>Note:</strong> <em><code>rnpm</code> requires <code>node</code> version 4.1 or higher</em></p><h4><a class="anchor" name="step-2"></a>Step 2 <a class="hash-link" href="#step-2">#</a></h4><p>Install a library with native dependencies:</p><div class="prism language-javascript">$ npm install library<span class="token operator">-</span><span class="token keyword">with</span><span class="token operator">-</span>native<span class="token operator">-</span>dependencies <span class="token operator">--</span>save</div><p><strong>Note:</strong> <em><code>--save</code> or <code>--save-dev</code> flag is very important for this step. <code>rnpm</code> will link
error as soon as you try to use the library.</em></p><h2><a class="anchor" name="here-the-few-steps-to-link-your-libraries-that-contain-native-code"></a>Here the few steps to link your libraries that contain native code <a class="hash-link" href="#here-the-few-steps-to-link-your-libraries-that-contain-native-code">#</a></h2><h3><a class="anchor" name="automatic-linking"></a>Automatic linking <a class="hash-link" href="#automatic-linking">#</a></h3><p>&quot;<a href="http://github.com/rnpm/rnpm" target="_blank">rnpm</a>&quot; is a community project that allows linking of native dependencies automatically:</p><h4><a class="anchor" name="step-1"></a>Step 1 <a class="hash-link" href="#step-1">#</a></h4><p>Install <code>rnpm</code>:</p><div class="prism language-javascript">$ npm install rnpm <span class="token operator">-</span>g</div><p><strong>Note:</strong> <em><code>rnpm</code> requires <code>node</code> version 4.1 or higher</em></p><h4><a class="anchor" name="step-2"></a>Step 2 <a class="hash-link" href="#step-2">#</a></h4><p>Install a library with native dependencies:</p><div class="prism language-javascript">$ npm install &lt;library<span class="token operator">-</span><span class="token keyword">with</span><span class="token operator">-</span>native<span class="token operator">-</span>dependencies<span class="token operator">&gt;</span> <span class="token operator">--</span>save</div><p><strong>Note:</strong> <em><code>--save</code> or <code>--save-dev</code> flag is very important for this step. <code>rnpm</code> will link
your libs based on <code>dependencies</code> and <code>devDependencies</code> in your <code>package.json</code> file.</em></p><h4><a class="anchor" name="step-3"></a>Step 3 <a class="hash-link" href="#step-3">#</a></h4><p>Link your native dependencies:</p><div class="prism language-javascript">$ rnpm link</div><p>Done! All libraries with a native dependencies should be successfully linked to your iOS/Android project.</p><h3><a class="anchor" name="manual-linking"></a>Manual linking <a class="hash-link" href="#manual-linking">#</a></h3><h4><a class="anchor" name="step-1"></a>Step 1 <a class="hash-link" href="#step-1">#</a></h4><p>If the library has native code, there must be a <code>.xcodeproj</code> file inside it&#x27;s
folder.
Drag this file to your project on Xcode (usually under the <code>Libraries</code> group