question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use `react-native link` with a existing iOS or Android project path

See original GitHub issue

Can I use react-native link command with a parameter like

react-native link --path "{a_path_to_my_exisiting_ios_or_android_project}"

to link the native code in the node_modules/ to a specific, existing iOS/Android project?

If YES, how to do that and can you document it? If No, can you add this feature?

Using the manual method for existing projects is error-prone and time-consuming.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
hramoscommented, Sep 21, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we’re automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

5reactions
grabboucommented, Feb 5, 2018

@xareelee you can set a rnpm key in your package.json and define some properties to override defaults.

E.g. here we read properties from an object userConfig.

In order to override location to your .xcodeproj, you’d do:

{ "rnpm": { "ios": { "project": ".../a.xcodeproj" } } }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating React Native with existing Android and iOS native ...
The app starts from a native view (by running the native project from Android Studio or Xcode). The native view has an edit...
Read more >
Integration with Existing Apps - React Native
1. Set up directory structure​ ... To ensure a smooth experience, create a new folder for your integrated React Native project, then copy...
Read more >
How to add React Native to an existing iOS app in 2022
Create a new folder for your project. This is where we will keep the React Native code. After creating this folder, copy your...
Read more >
Integrating react native in existing iOS & android project ...
1 Answer 1 ... This is very possible. We currently use a similar scenario in production. We have an Android repo A and...
Read more >
React Native Tutorial: Integrating in an Existing App
The React Native framework lets you build native apps using React concepts. With React Native, you can build responsive native apps while ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found