Skip to content

Commit 9241f93

Browse files
committed
docs: add links to the official docs for native modules and views
1 parent 62b7e77 commit 9241f93

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The documentation for the project is under `docs` directory. To run the document
4949
yarn docs dev
5050
```
5151

52-
## Acknowledgements
52+
## Acknowledgments
5353

5454
Thanks to the authors of these libraries for inspiration:
5555

docs/pages/create.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ After the project is created, you can find the development workflow in the gener
3131

3232
## Local library
3333

34-
While the default templates are for libraries that are published to npm, you can also create a local library that is not published, but used locally in your app. The local library is created outside of the `android` and `ios` folders and makes use of autolinking to integrate with your app. It also doesn't include a separate example app and additional dependencies that are configured in the default templates. This is an alternative approach to the setup mentioned in [React Native docs](https://reactnative.dev).
34+
While the default templates are for libraries that are published to npm, you can also create a local library that is not published, but used locally in your app.
3535

3636
If you run `create-react-native-library` in an existing project containing a `package.json`, it'll be automatically detected and you'll be asked if you want to create a local library. You can also pass the `--local` flag to the command to explicitly create a local library:
3737

3838
```sh
3939
npx create-react-native-library@latest awesome-library --local
4040
```
4141

42+
The local library is created outside of the `android` and `ios` folders and makes use of autolinking to integrate with your app. It also doesn't include a separate example app and additional dependencies that are configured in the default templates. This is an alternative approach to the setup mentioned in [React Native docs](https://reactnative.dev).
43+
4244
The advantages of this approach are:
4345

4446
- It's easier to upgrade React Native as you don't need to worry about custom code in `android` and `ios` folders.
@@ -56,3 +58,13 @@ By default, the generated library is automatically linked to the project using `
5658
```
5759

5860
This creates a symlink to the library under `node_modules` which makes autolinking work. But if you're using a monorepo or have non-standard setup, you'll need to manually set up the package to be linked to your app based on your project setup.
61+
62+
## Writing native code
63+
64+
Once the project is created, you can follow the official React Native docs to learn the API for writing native modules and components:
65+
66+
- [Native Modules](https://reactnative.dev/docs/native-modules-intro)
67+
- [Native UI Components for Android](https://reactnative.dev/docs/native-components-android)
68+
- [Native UI Components for iOS](https://reactnative.dev/docs/native-components-ios)
69+
- [Turbo Modules](https://reactnative.dev/docs/the-new-architecture/pillars-turbomodules)
70+
- [Fabric Components](https://reactnative.dev/docs/the-new-architecture/pillars-fabric-components)

0 commit comments

Comments
 (0)