Documentation for native code #932
Replies: 2 comments 8 replies
-
This is something I'm personally very interested in. I spend some time reading React Native source code, PRs, issue threads, etc. But I feel like we would all be better community members and contributors if there was a clearer entry point to learn about these things. |
Beta Was this translation helpful? Give feedback.
-
I created a basic prototype a few months ago for the React Native Android documentation using Dokka. I think it would be great to have something like this integrated directly into the core, so documentation can be autogenerated based on the code itself. You can check it out here: https://mateoguzmana.github.io/react-native/ (I haven't updated it in a while sadly) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thinking about the new initiative around stable core, as well as a recent upgrade from RN74 to 79, has got me thinking: it would be incredible if there was a documentation site for the native side of React Native.
React Native has a number of awesome utilities (like converting DIP to PX and vice versa). But there's no way to know about any of this unless you look at other libraries' native code or the source code of RN itself.
Along that line, many of the packages I needed to update between 74 to 79 were just because certain classes that a turbo module was extending from was deprecated or removed. Native modules provided by RN often inherit from different classes than the RN docs site say to use, which I think I've seen change even between versions.
An official docs site for RN Android and iOS would benefit library authors in 3 ways:
Thank you all for your hard work!
Beta Was this translation helpful? Give feedback.
All reactions