Tadeu Zagallo
2a7adfb815
[ReactNative] Use RCTNullIfNill and (id)kCFNull
...
Summary:
@public
Use consistent `null` handling:
`value || null` -> `RCTNullIfNil(value)`
`value == null ? nil : value` -> `RCTNilIfNull(value)`
`[NSNull null]` -> `(id)kCFNull`
Test Plan: The tests should be enough.
2015-06-12 11:03:10 -08:00
Stanislav Vishnevskiy
86d4f4e20a
[WebSocket] Reason can be null which causes an exception with NSDictionary in websocketClosed
...
Summary:
I am not 100% sure what causes reason to be null but it does happen.
Closes https://github.com/facebook/react-native/pull/1483
Github Author: Stanislav Vishnevskiy <vishnevskiy@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-06-11 18:06:29 -08:00
Harrison Harnisch
babdc21614
WebSocket polyfill
...
Summary:
- Added as a library in /Libraries/WebSocket
- Drag and drop to add to project (similar to adding Geolocation polyfill)
- Exposed as `window.WebSocket` which conforms with https://developer.mozilla.org/en-US/docs/Web/API/WebSocket specs
Closes https://github.com/facebook/react-native/pull/890
Github Author: Harrison Harnisch <hharnisc@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-14 09:37:02 -08:00