Update React Native version references to 0.82.0#4882
Conversation
|
Also can we cherry pick this to 0.82-stable |
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
||
| ```shell | ||
| npx @react-native-community/cli@latest init SampleApp --version 0.80.0 | ||
| npx @react-native-community/cli@latest init SampleApp --version 0.82.0 |
There was a problem hiding this comment.
Hey @riteshshukla04, nice catch! 👍
Let's use import {getCurrentVersion} from '@site/src/getCurrentVersion'; helper here and update also all versioned docs. You can find some usage examples in other docs.
There was a problem hiding this comment.
Nice . I didn’t knew this existed. I will update it
|
You can do the cherry pick in the website in this PR. The website has a folder called versioned_docs or something like that that contains the docs for the previous versions of RN. |
|
@riteshshukla04 Using the helper inside Markdown code blocks does not work, since it is treated as a plain text:
You would need to use JSX |
Yeah thanks @Simek . I figured that out |
|
|
||
| ```sh | ||
| curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp | ||
| curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp |
There was a problem hiding this comment.
Should this be a <CodeBlock> as well?
|
Fixed @cipolleschi @Simek . Thanks This took way too long. Apparently I shouldnt have asked AI to do this |
|
@riteshshukla04 Looks like the only |
Hey @Simek I think this is correct.
I have hardcoded version in versioned docs . So we dont need codeblock. In future versions. This will automatically become dynamic |
| ```sh | ||
| curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp | ||
| curl -O https://raw.githubusercontent.com/facebook/react-native/v0.77.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp | ||
| ``` |
There was a problem hiding this comment.
You are still using the hardcoded version here instead of the helper. It would be nice if you can port changes from /docs file into rest of the docs.
Simek
left a comment
There was a problem hiding this comment.
Thanks for the updates, LGTM! 👍



Hi ,
I am facing issues while creating cpp modules.
The previous
onload.cppfrom 0.76 importsrncorewhich is now deprecated . The build fails. This should fix the docs