Skip to content

Update React Native version references to 0.82.0#4882

Merged
Simek merged 10 commits into
react:mainfrom
riteshshukla04:main
Nov 14, 2025
Merged

Update React Native version references to 0.82.0#4882
Simek merged 10 commits into
react:mainfrom
riteshshukla04:main

Conversation

@riteshshukla04

Copy link
Copy Markdown
Contributor

Hi ,

I am facing issues while creating cpp modules.
The previous onload.cpp from 0.76 imports rncore which is now deprecated . The build fails. This should fix the docs

@meta-cla meta-cla Bot added the CLA Signed label Nov 13, 2025
@riteshshukla04

riteshshukla04 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author

Also can we cherry pick this to 0.82-stable

@netlify

netlify Bot commented Nov 13, 2025

Copy link
Copy Markdown

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 33a5ff7
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/6915dcd56851000008873091
😎 Deploy Preview https://deploy-preview-4882--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice . I didn’t knew this existed. I will update it

@cipolleschi

Copy link
Copy Markdown
Contributor

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.
Just apply the same changes to those files.

@Simek

Simek commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

@riteshshukla04 Using the helper inside Markdown code blocks does not work, since it is treated as a plain text:

Screenshot 2025-11-13 at 12 54 21

You would need to use JSX <CodeBlock> element instead to be able to interpolate the returned value. An example usage can be find here:

@riteshshukla04

Copy link
Copy Markdown
Contributor Author

@riteshshukla04 Using the helper inside Markdown code blocks does not work, since it is treated as a plain text:

Screenshot 2025-11-13 at 12 54 21 You would need to use JSX `` element instead to be able to interpolate the returned value. An example usage can be find here:

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a <CodeBlock> as well?

@riteshshukla04

riteshshukla04 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author

Fixed @cipolleschi @Simek . Thanks

This took way too long. Apparently I shouldnt have asked AI to do this

@Simek

Simek commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

@riteshshukla04 Looks like the only /docs (unversioned) file has the correct code, all versioned docs (in website/versioned_docs) still use the MD code block.

@riteshshukla04

riteshshukla04 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author
image 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

Comment on lines 227 to 229
```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
```

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Simek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, LGTM! 👍

@Simek Simek requested a review from cipolleschi November 13, 2025 13:33
@Simek Simek merged commit 3597409 into react:main Nov 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants