Skip to content

Conversation

@riteshshukla04
Copy link
Contributor

Fixes #2785

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 28, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d0d801e:

Sandbox Source
react-native-web-examples Configuration

@riteshshukla04 riteshshukla04 changed the title Add Platform.Version [feat]Add Platform.Version Aug 11, 2025
@necolas necolas merged commit 607e52d into necolas:master Aug 11, 2025
6 checks passed
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Aug 14, 2025
Summary:
This PR fixes #52356.

As per discussion here #52360 . We have changed the implementation in React native web in this PR necolas/react-native-web#2791.
As discussed with cortinico , Now web returns a hardcoded string "0.0.0" for `platform.version`.
 We can safely change this to string now.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[GENERAL][CHANGED] Update types for Platform.version

Pull Request resolved: #53216

Test Plan: N/A

Reviewed By: christophpurrer

Differential Revision: D80173301

Pulled By: necolas

fbshipit-source-id: 750aae2427a6c36a068346a9722d9734d9906b58
kikoso pushed a commit to kikoso/react-native that referenced this pull request Aug 26, 2025
Summary:
This PR fixes facebook#52356.

As per discussion here facebook#52360 . We have changed the implementation in React native web in this PR necolas/react-native-web#2791.
As discussed with cortinico , Now web returns a hardcoded string "0.0.0" for `platform.version`.
 We can safely change this to string now.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[GENERAL][CHANGED] Update types for Platform.version

Pull Request resolved: facebook#53216

Test Plan: N/A

Reviewed By: christophpurrer

Differential Revision: D80173301

Pulled By: necolas

fbshipit-source-id: 750aae2427a6c36a068346a9722d9734d9906b58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add string version for Platform.Version

2 participants