Commit f6ba2db
Add types for platform in React native web (#53216)
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: 750aae2427a6c36a068346a9722d9734d9906b581 parent 56ad53c commit f6ba2db
3 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
5860 | 5860 | | |
5861 | 5861 | | |
5862 | 5862 | | |
5863 | | - | |
| 5863 | + | |
5864 | 5864 | | |
5865 | 5865 | | |
5866 | 5866 | | |
| |||
0 commit comments