react-native/React
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
..
Base [Bridge] Support nullability annotations in bridged methods 2015-06-30 04:17:20 -08:00
Executors [ReactNative] Add PerformanceLogger to measure TTI 2015-06-19 15:01:35 -08:00
Layout Fixed layout bug 2015-05-13 13:24:36 -07:00
Modules Revert "[React Native] Remove layout-only nodes" 2015-06-25 13:30:06 -08:00
React.xcodeproj [React Native] Replace RCTCache with NSURLCache 2015-06-29 05:26:35 -08:00
Views [NavigatorIOS] Allow translucent on NavigatorIOS 2015-06-26 07:17:54 -08:00