react-native/React/Base
Leo Natan 30469ed001 Expose React Native version as a symbol rather than macro
Summary:
Add RCTGetReactNativeVersion() to expose version in native code. Right now, version is exposed internally to RN using a MACRO constant. This exposes a symbol (function) that can be called to retrieve the React Native version in iOS.

Also exposed RCTVersion.h as a public header in the React project so it is available to developers.

The motivation behind this is for https://github.com/wix/detox —we need to know what RN version the user has, if any, so we can properly handle support and abstract differences.

Ran bump-oss-version.js to ensure the template is applied properly. Also compiled the project to make sure nothing is broken.

 [IOS] [ENHANCEMENT] [RCTVersion.h] - Expose version as a compile-time symbol for native queries

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAL  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
Closes https://github.com/facebook/react-native/pull/18136

Differential Revision: D7141076

Pulled By: hramos

fbshipit-source-id: 18a92b8c60d7b43fa0ed22597ea46a35cff73c56
2018-03-02 14:51:39 -08:00
..
Surface iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmounting 2018-02-28 20:17:37 -08:00
RCTAssert.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAssert.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridge+Private.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridge.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridge.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridgeDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridgeMethod.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBridgeModule.h Mark ObjC methods that are called from React Native as dynamic. 2018-02-26 12:24:17 -08:00
RCTBundleURLProvider.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBundleURLProvider.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert.h Mark ObjC methods that are called from React Native as dynamic. 2018-02-26 12:24:17 -08:00
RCTConvert.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTCxxConvert.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTCxxConvert.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDefines.h Mark ObjC methods that are called from React Native as dynamic. 2018-02-26 12:24:17 -08:00
RCTDisplayLink.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDisplayLink.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTErrorCustomizer.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTErrorInfo.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTErrorInfo.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTEventDispatcher.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTEventDispatcher.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFrameUpdate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFrameUpdate.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageSource.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageSource.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTInvalidating.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSCErrorHandling.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSCErrorHandling.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSStackFrame.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSStackFrame.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJavaScriptExecutor.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJavaScriptLoader.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJavaScriptLoader.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTKeyCommands.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTKeyCommands.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLog.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLog.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTManagedPointer.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTManagedPointer.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleData.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleData.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleMethod.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModuleMethod.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMultipartDataTask.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMultipartDataTask.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMultipartStreamReader.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMultipartStreamReader.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNullability.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTParserUtils.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTParserUtils.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPerformanceLogger.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPerformanceLogger.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPlatform.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPlatform.m Expose React Native version as a symbol rather than macro 2018-03-02 14:51:39 -08:00
RCTReloadCommand.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTReloadCommand.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootContentView.h iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmounting 2018-02-28 20:17:37 -08:00
RCTRootContentView.m iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmounting 2018-02-28 20:17:37 -08:00
RCTRootView.h iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmounting 2018-02-28 20:17:37 -08:00
RCTRootView.m iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmounting 2018-02-28 20:17:37 -08:00
RCTRootViewDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootViewInternal.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVRemoteHandler.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVRemoteHandler.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTouchEvent.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTouchEvent.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTouchHandler.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTouchHandler.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTURLRequestDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTURLRequestHandler.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTUtils.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTUtils.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTVersion.h Expose React Native version as a symbol rather than macro 2018-03-02 14:51:39 -08:00
RCTVersion.m Expose React Native version as a symbol rather than macro 2018-03-02 14:51:39 -08:00