react-native/Libraries/WebSocket
Ben Roth 6a14f0b449 Add RCTDevSettings module
Summary:
This decouples non-UI logic from RCTDevMenu into a new module RCTDevSettings.

**Motivation**: This allows developers to change dev settings without depending on the built-in dev menu, e.g. if they want to introduce their own UI, or have other devtools logic that doesn't depend on an action sheet.

It also introduces the RCTDevSettingsDataSource protocol for storing dev tools preferences. This could allow a developer to implement alternative behaviors, e.g. loading the settings from some other config, changing settings based on the user, deciding not to persist some settings, or something else.

The included data source implementation, RCTDevSettingsUserDefaultsDataSource, uses NSUserDefaults and is backwards compatible with the older implementation, so **no workflows or dependent code will break, and old saved settings will persist.**

The RCTDevMenu interface has not changed and is therefore also backwards-compatible, though
some methods are now deprecated.

In order to ensure that RCTDevSettings
Closes https://github.com/facebook/react-native/pull/11613

Reviewed By: mmmulani

Differential Revision: D4571773

Pulled By: javache

fbshipit-source-id: 25555d0a6eaa81f694343e079ed02439e5845fbc
2017-02-24 07:00:16 -08:00
..
RCTWebSocket.xcodeproj Refactor iOS packager webSocket handling to resemble Android's packagerconnection 2017-02-23 10:03:54 -08:00
__mocks__ Fix WebSocket compatibility with event-target-shim ^1.0.5 2016-04-27 12:26:23 -07:00
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
RCTReconnectingWebSocket.h Refactor iOS packager webSocket handling to resemble Android's packagerconnection 2017-02-23 10:03:54 -08:00
RCTReconnectingWebSocket.m Refactor iOS packager webSocket handling to resemble Android's packagerconnection 2017-02-23 10:03:54 -08:00
RCTSRWebSocket.h Backed out changeset 183744d2415b 2016-03-15 11:49:28 -07:00
RCTSRWebSocket.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTWebSocketExecutor.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTWebSocketExecutor.m Add RCTDevSettings module 2017-02-24 07:00:16 -08:00
RCTWebSocketModule.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTWebSocketModule.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTWebSocketObserver.h Rename and merge files for RCTWebSocketObserver protocol 2016-12-08 07:44:37 -08:00
RCTWebSocketObserver.m Refactor iOS packager webSocket handling to resemble Android's packagerconnection 2017-02-23 10:03:54 -08:00
WebSocket.js Fix race condition during initialization 2017-02-09 13:32:31 -08:00
WebSocketEvent.js
WebSocketInterceptor.js Reorganize core JS files 2016-10-11 10:14:28 -07:00