You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@ To configure your project manually, follow these steps:
57
57
58
58
1. First, install `react-native-builder-bob` in your project. Open a Terminal in your project, and run:
59
59
60
-
```sh
61
-
yarn add --dev react-native-builder-bob
62
-
```
60
+
```sh
61
+
yarn add --dev react-native-builder-bob
62
+
```
63
63
64
64
1. In your `package.json`, specify the targets to build for:
65
65
@@ -300,9 +300,37 @@ There are 2 parts to this process.
300
300
301
301
You may have come across the `yarn link` and `npm link` commands to test libraries locally. These commands work great for simple packages without build process, but they have different behavior from how a published package works.
302
302
303
-
For more accurate testing, you could create a tarball using `npm pack` and install it instead, but it also has [some issues](https://github.com/yarnpkg/yarn/issues/6811).
303
+
For more accurate testing, we recommend following approaches:
304
+
305
+
1.**Local tarball with `npm`**
306
+
307
+
First, temporarily change the version in `package.json` to something like `0.0.0-local.0`. This version number needs to be updated to something different every time you do this to avoid [stale content](https://github.com/yarnpkg/yarn/issues/6811).
308
+
309
+
Run the following command inside your library's root:
310
+
311
+
```sh
312
+
npm pack
313
+
```
314
+
315
+
This will generate a file like `your-library-name-0.0.0-local.0.tgz` in the root of the project.
[Verdaccio](https://verdaccio.org/) is a lightweight private npm registry that can be used to test packages locally. The advantage of using Verdaccio is that it allows to test the complete workflow of publishing and installing a package without actually publishing it to a remote registry.
304
332
305
-
The most reliable way is to use [Verdaccio](https://verdaccio.org/) to publish the library to a local server and install it.
333
+
You can find installation and usage instructions in the [Verdaccio documentation](https://verdaccio.org/docs/en/installation).
0 commit comments