function _formatVersion(version): string {
  return (
    `${version.major}.${version.minor}.${version.patch}` +
    (version.prerelease !== null ? `-${version.prerelease}` : '')
  );
}
Checks that the version of this React Native JS is compatible with the native
code, throwing an error if it isn't.

The existence of this module is part of the public interface of React Native
even though it is used only internally within React Native. React Native
implementations for other platforms (ex: Windows) may override this module
and rely on its existence as a separate module.