Allyl Isocyanate
Allyl Isocyanate

Reputation: 13626

Manually link native libraries for React native project from terminal

I'm following the instructions for manual library linking on:

https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking

It involves dragging and dropping the .xcodeproj project file onto the and several other drag-and-drop steps.

Is it possible to do this through the terminal instead?

Upvotes: 3

Views: 3776

Answers (2)

Jeff Gu Kang
Jeff Gu Kang

Reputation: 4879

You do not need to link libraries manually anymore when you makes your react native projects.

rnpm was made for linking native libraries to natives automatically. And rnpm project is merged to React Native.

Therefore, use react-native link <name> or rpm link <name> after install react native packages. Or just use react-native link. It makes link all modules' libraries automatically.

Upvotes: 1

Nader Dabit
Nader Dabit

Reputation: 53691

This can be done with React Native Package Manager, or rnpm.

Once rnpm is installed, you can install all of your native libraries by running rnpm link or a single dependency by running rnpm link <name>.

Upvotes: 3

Related Questions