Skip to content

Commit 58d4f1a

Browse files
authored
Fix RN version in sync connection parameters (#5888)
1 parent 692d1c4 commit 58d4f1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ module.exports = {
175175
deviceVersion = `${Platform.Model}`;
176176
}
177177

178+
let reactNativeVersion = `${Platform.constants.reactNativeVersion.major}.${Platform.constants.reactNativeVersion.minor}.${Platform.constants.reactNativeVersion.patch}`;
179+
if (Platform.constants.reactNativeVersion.prerelease) {
180+
reactNativeVersion = `${reactNativeVersion}.${Platform.constants.reactNativeVersion.prerelease}`;
181+
}
182+
178183
return {
179184
bundleId,
180185

@@ -189,7 +194,7 @@ module.exports = {
189194
deviceVersion,
190195

191196
frameworkName: "react-native",
192-
frameworkVersion: Object.values(Platform.constants.reactNativeVersion).join("."),
197+
frameworkVersion: reactNativeVersion,
193198
};
194199
} else if (environment === "node.js" || environment === "electron") {
195200
const os = node_require("os");

0 commit comments

Comments
 (0)