mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add reloadWithReason to DevSettings
Summary: This diff adds reloadWithReason to the NativeDevSettings and updates the exposed DevSettings.reload method to send to it if it's available (setting an 'uncategorized' reason if one isn't set. [General][Feature] Update DevSettings.reload to accept a reason Reviewed By: RSNara Differential Revision: D17499343 fbshipit-source-id: e8c9724800f93d3b9a5d2a8fe9f689d51947d39b
This commit is contained in:
committed by
Facebook Github Bot
parent
2ccc8fbc28
commit
549cac63cb
@@ -52,6 +52,11 @@ public class DevSettingsModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void reloadWithReason(String reason) {
|
||||
this.reload();
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void setHotLoadingEnabled(boolean isHotLoadingEnabled) {
|
||||
mDevSupportManager.setHotModuleReplacementEnabled(isHotLoadingEnabled);
|
||||
|
||||
Reference in New Issue
Block a user