mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add fastRefresh to NativeDevSettings
Summary: This diff adds a method to call whenever a fast refresh happens. Right now this is only useful for reporting. Reviewed By: cpojer Differential Revision: D17528033 fbshipit-source-id: 17e82abe7a3e2bab6829de5adecda853fe5335c5
This commit is contained in:
committed by
Facebook Github Bot
parent
4cea628e0c
commit
2d95668aa8
@@ -57,6 +57,11 @@ public class DevSettingsModule extends ReactContextBaseJavaModule {
|
||||
this.reload();
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void onFastRefresh() {
|
||||
// noop
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void setHotLoadingEnabled(boolean isHotLoadingEnabled) {
|
||||
mDevSupportManager.setHotModuleReplacementEnabled(isHotLoadingEnabled);
|
||||
|
||||
Reference in New Issue
Block a user