|
18 | 18 | ```
|
19 | 19 |
|
20 | 20 | > Since the project relies on Yarn workspaces, you cannot use [`npm`](https://github.com/npm/cli) for development.
|
| 21 | +<% if (project.moduleConfig === 'nitro-modules') { -%> |
21 | 22 |
|
22 |
| -The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make. |
| 23 | +This project uses Nitro Modules. If you're not familiar with how Nitro works, make sure to check the [Nitro Modules Docs](https://nitro.margelo.com/). |
23 | 24 |
|
24 |
| -It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app. |
25 |
| -<% if (project.moduleConfig === 'nitro-modules') { -%> |
| 25 | +You need to run the code generation process using [Nitrogen](https://nitro.margelo.com/docs/nitrogen) to generate the boilerplate-heavy code required for this project. Without this step, the example apps will not build. |
| 26 | + |
| 27 | +Run **Nitrogen** in the following cases: |
| 28 | +- When you make changes to any `*.nitro.ts` files. |
| 29 | +- When running the project for the first time (since the generated files are not committed to the repository). |
| 30 | + |
| 31 | +To invoke **Nitrogen**, use the following command: |
26 | 32 |
|
27 |
| -This project uses [Nitro Modules](https://nitro.margelo.com/). If you're not familiar with how Nitro works, make sure to check the [Nitro Modules Docs](https://nitro.margelo.com/). |
| 33 | +```sh |
| 34 | +yarn nitrogen |
| 35 | +``` |
28 | 36 | <% } -%>
|
29 | 37 |
|
| 38 | +The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make. |
| 39 | + |
| 40 | +It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app. |
| 41 | + |
30 | 42 | <% if (project.native) { -%>
|
31 | 43 | If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/<%- project.name -%>Example.xcworkspace` in XCode and find the source files at `Pods > Development Pods > <%- project.slug -%>`.
|
32 | 44 |
|
|
0 commit comments