react-native-macos/React/CxxBridge
Rick Hanlon 2ccc8fbc28 Add and use reloadWithReason to iOS
Summary:
This diff adds a new reloading method reloadWithReason that allows callers to provide a reason for why a reload was requested.

This reason is useful for understanding why users are reloading, and why Fast Refresh is bailing out to a full reload. I also updated the places we reload with the reasons listed below.

**Standard native reasons:**
- Redbox
- Command
- Global hotkey
- Profiling controls
- Dev menu - reload
- Dev menu - reset to default
- Dev menu - apply changes

**From JavaScript (added in a later diff):**
- Fast Refresh - Unrecoverable
- Fast Refresh - No root boundary
- Fast Refresh - Invalidated boundary
- Fast Refresh - Invalidated root boundary

**Misc reasons and fallback for when a reason is unavailable:**
- Unknown from JS
- Uncategorized from JS
- Unknown from bridge
- Unknown from cxx bridge
- Requested from bridge
- Custom executor class reset

Reviewed By: cpojer

Differential Revision: D17499339

fbshipit-source-id: 12a21ffa05708c9b921d93911f190cdffc5c78d5
2019-09-30 07:03:50 -07:00
..
JSCExecutorFactory.h Make JSCExecutorFactory accessible from outside 2019-01-16 10:47:44 -08:00
JSCExecutorFactory.mm Refactor JSIExecutor to use runtimeInstaller for injecting the logger instance 2019-03-25 09:12:11 -07:00
NSDataBigString.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NSDataBigString.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTCxxBridge.mm Add and use reloadWithReason to iOS 2019-09-30 07:03:50 -07:00
RCTCxxBridgeDelegate.h iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTMessageThread.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTMessageThread.mm iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTObjcExecutor.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTObjcExecutor.mm Fix 50 xcode warnings (#23553) 2019-02-20 10:17:26 -08:00