Skip to content

How to make react-native-windows as local package dependency? #10705

Answered by jonthysell
zmj520 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to modify your own copy of the react-native-windows repo (i.e. that you cloned/downloaded) and would like to build an app that consumes that local copy, you'll need to update your app project to use yarn link. See https://github.com/microsoft/react-native-windows/wiki/Contributing-to-the-CLI#testing-changes-made-to-our-other-packages-using---usedevmode

Don't forget that as you modify the TS files in your RNW clone, you'll need to use yarn build to build the JS for your app to consume.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonthysell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants