Skip to content

Commit

Permalink
Fix getDevSupportManager() in ReactDelegate
Browse files Browse the repository at this point in the history
Summary:
In facebook#43520, this was moved to supply with the relevant DevSupportManager, however in Bridge mode in case of RELEASE(useDeveloperSupport = false), it would not provide BridgeDevSupportManager because of this check.

Changelog:
[ANDROID][FIXED] - Fixed `getDevSupportManager()` in ReactDelegate

Differential Revision: D56739764
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 30, 2024
1 parent 9cfc71d commit 8d52551
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private DevSupportManager getDevSupportManager() {
&& mReactHost.getDevSupportManager() != null) {
return mReactHost.getDevSupportManager();
} else if (getReactNativeHost().hasInstance()
&& getReactNativeHost().getUseDeveloperSupport()) {
&& getReactNativeHost().getReactInstanceManager() != null) {
return getReactNativeHost().getReactInstanceManager().getDevSupportManager();
} else {
return null;
Expand Down

0 comments on commit 8d52551

Please sign in to comment.