mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
[Docs] Linking Libraries fix site->side, prefer only to just
This commit is contained in:
@@ -17,7 +17,7 @@ For most of the libs it will be as simple as dragging two files, sometimes a thi
|
||||
step will be necessary, but no more than that.
|
||||
|
||||
_All the libraries we ship with React Native live on the `Libraries` folder in
|
||||
the root of the repository. Some of them are pure JavaScript, and you just need
|
||||
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._
|
||||
@@ -47,9 +47,8 @@ Not every library will need this step, what you need to consider is:
|
||||
|
||||
_Do I need to know the contents of the library at compile time?_
|
||||
|
||||
What that means is, are you using this library on the native site or just in
|
||||
JavaScript? If you are just using it in JavaScript, you are good to go!
|
||||
|
||||
What that means is, are you using this library on the native side or only in
|
||||
JavaScript? If you are only using it in JavaScript, you are good to go!
|
||||
|
||||
This step is not necessary for libraries that we ship with React Native with the
|
||||
exception of `PushNotificationIOS` and `LinkingIOS`.
|
||||
|
||||
Reference in New Issue
Block a user