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".
PlatformConstantsprovides 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".