Files
react-native/Libraries
Janic Duplessis 1af645b2fd Validate that JS and Native code versions match for RN releases
Summary:
Basic implementation of the proposal in #15271

Note that this should not affect facebook internally since they are not using OSS releases.

Points to consider:
- How strict should the version match be, right now I just match exact versions.
- Wasn't able to use haste for ReactNativeVersion because I was getting duplicate module provider caused by the template file in scripts/versiontemplates. I tried adding the scripts folder to modulePathIgnorePatterns in package.json but that didn't help.
- Redscreen vs. warning, I think warning is useless because if the app crashes you won't have time to see the warning.
- Should the check and native modules be __DEV__ only?

**Test plan**
Tested that it works when version match and that it redscreens when versions don't before getting other errors on Android and iOS.
Closes https://github.com/facebook/react-native/pull/15518

Differential Revision: D5813551

Pulled By: hramos

fbshipit-source-id: 901757e25724b0f22bf39de172b56309d0dd5a95
2017-09-27 18:31:15 -07:00
..
2017-09-11 16:08:03 -07:00
2017-09-25 10:30:53 -07:00
2017-09-06 03:33:43 -07:00
2017-09-06 03:33:43 -07:00
2016-11-02 12:29:15 -07:00
2017-09-08 14:46:14 -07:00
2017-09-26 23:45:48 -07:00
2017-09-21 15:01:52 -07:00
2017-09-24 23:01:25 -07:00
2017-09-26 23:45:48 -07:00
2017-09-12 05:50:26 -07:00
2017-02-21 15:18:40 -08:00
2017-08-23 08:54:39 -07:00
2017-09-06 03:33:43 -07:00
2017-09-06 03:33:43 -07:00
2017-08-23 20:45:45 -07:00
2017-09-06 03:33:43 -07:00