update website

This commit is contained in:
Travis CI
2015-10-15 00:02:08 +00:00
parent 3cd3c6f5e3
commit 320168cb39
+1 -1
View File
@@ -7,7 +7,7 @@ to <code>require</code> it. Other libraries also rely on some native code, in th
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="step-1"></a>Step 1 <a class="hash-link" href="#step-1">#</a></h3><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>Libaries</code> group
Drag this file to your project on Xcode (usually under the <code>Libraries</code> group
on Xcode);</p><p><img src="/react-native/img/AddToLibraries.png" alt=""></p><h3><a class="anchor" name="step-2"></a>Step 2 <a class="hash-link" href="#step-2">#</a></h3><p>Click on your main project file (the one that represents the <code>.xcodeproj</code>)
select <code>Build Phases</code> and drag the static library from the <code>Products</code> folder
inside the Library you are importing to <code>Link Binary With Libraries</code></p><p><img src="/react-native/img/AddToBuildPhases.png" alt=""></p><h3><a class="anchor" name="step-3"></a>Step 3 <a class="hash-link" href="#step-3">#</a></h3><p>Not every library will need this step, what you need to consider is:</p><p><em>Do I need to know the contents of the library at compile time?</em></p><p>What that means is, are you using this library on the native side or only in