react-native/Libraries/RCTTest
James Ide e3225f3403 [Bridge] Support nullability annotations in bridged methods
Summary:
Fixes a crash due to the selector regex not knowing about the nullability annotations. Adds support for both the core annotations `__nullable` and `__nonnull` plus their shorthand counterparts `nullable` and `nonnull`.

Objective-C allows the shorthand versions only at the front of a parameter type declaration like `(nullable NSString *)` but the regex will pick up `(NSString * nullable)` too. This shouldn't cause any adverse effects and I left the code this way to keep the regex readable.

Fixes #1795

Closes https://github.com/facebook/react-native/pull/1796
Github Author: James Ide <ide@jameside.com>

Test Plan:
 Wrote a bridge method that uses a nullability annotation and verified that it didn't cause the app to crash:
```
RCT_EXPORT_METHOD(method:(nullable NSNumber *)reactTag)
{
}
```

Also added a nullable annotation to RCTTest.
2015-06-30 04:17:20 -08:00
..
FBSnapshotTestCase [ReactNative] OSS snapshot tests 2015-03-24 10:16:15 -08:00
RCTTest.xcodeproj Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTTestModule.h Improve test architecture so failures don't crash the simulator 2015-06-17 07:09:23 -08:00
RCTTestModule.m [Bridge] Support nullability annotations in bridged methods 2015-06-30 04:17:20 -08:00
RCTTestRunner.h Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTTestRunner.m [ReactNative] Ignore _UILayoutGuide in tests 2015-06-25 08:09:13 -08:00