Skip to content

Commit

Permalink
Update RN Version Expected Structure (#32892)
Browse files Browse the repository at this point in the history
Summary:
Current syntax options for RN version values break Windows. Following change to nightly build format to be 0.0.0-X-X-X, prerelease value is now a string (X-X-X).

microsoft/react-native-windows#9223

## Changelog

[General] [Fixed] - Fix RN version syntax to match new nightly build structure.

Pull Request resolved: #32892

Reviewed By: cortinico

Differential Revision: D33712950

Pulled By: lunaleaps

fbshipit-source-id: 9e47cae34930ee624a863c832430962354ebb5be
  • Loading branch information
chiaramooney authored and facebook-github-bot committed Jan 26, 2022
1 parent 1cc217d commit 3d1d4ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Core/ReactNativeVersionCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports.checkVersions = function checkVersions(): void {
function _formatVersion(
version:
| {major: number, minor: number, patch: number, prerelease: ?number}
| {major: number, minor: number, patch: number, prerelease: ?string}
| $TEMPORARY$object<{
major: number,
minor: number,
Expand Down

0 comments on commit 3d1d4ee

Please sign in to comment.