Skip to content

PlatformConstants Cannot Determine Correct Patch and Prerelease Version #4073

@NickGerleman

Description

@NickGerleman

PlatformConstants provides the capability for apps to check the React Native version. Since we're out of tree, this is determined by the package we use to build. Beyond what our dev dependency resolves to, we cannot guess the real version of what we're compiling with accuracy.

We could resolve this by having Facebook stamp their C++ code with version, as they do with ther iOS and Android native modules today (see https://github.com/facebook/react-native/blob/aee88b6843cea63d6aa0b5879ad6ef9da4701846/scripts/bump-oss-version.js).

Until then, we lie and will report a patch version of "0".

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions