Documentation Request: Using `create-react-native-library`
Hey @mrousavy, I’m trying out nitro modules as a real beginner to native coding and I’ve noticed that I really don’t have a great guide to follow in the docs using create-react-native-library from scratch.
Currently there is a section for:
- Using nitro within an app
- Using nitro within a library
But I would like to see a step-by-step guide starting from:
- Entering the CLI command `create-react-native-library@latest MathModule’
- Enter directory, description, etc.
- “Cd” into directory
- type
yarn prepare - cd example
- yarn start (and additionally adding expo to example app would be badass)
I’ve currently found myself in 3 straight hours of build errors just trying to get the example app running - minimum deployment versions, my package not linking correctly into the example app, etc.
I think it would also be super helpful to talk about the best way to re-build the example after making changes in *.nitro.ts, your swift module, etc.
I realize that I’m a novice at native development but I also realized there’s literally no good guides, YouTube videos, etc to follow specifically with nitro from scratch.
This would be so so awesome.
Thanks as always!
Chris
That makes sense, and I agree that there isn't a full recipe in the docs for 0 to hero.
The problem is I want this to be very framework-agnostic, and when e.g. building a Lynx module with Nitro, there's different steps involved. The current docs would cover that since it's framework-specific how you bootstrap your library (in RN it's CRNL)
But we can still add a section for that as long as it's not too verbose and well written
Resolved in https://github.com/mrousavy/nitro/pull/857 - my docs rewrite! :)