From df32ab43fbf1075e345f7322baa4b7ff1ebc02e3 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 10 Dec 2019 20:30:08 -0800 Subject: [PATCH] Expose a method to ReactContext to determine if we are running in Bridgeless mode or not Summary: This method exposes a method to ReactContext to determine if we are running in Bridgeless mode or not Changelog: [internal] Reviewed By: JoshuaGross Differential Revision: D18901149 fbshipit-source-id: bdd5ba747381f3bde5f592276b42244ca01ccbb9 --- .../main/java/com/facebook/react/bridge/ReactContext.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java index a3a92274390..b8b210c6b82 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java @@ -413,6 +413,11 @@ public class ReactContext extends ContextWrapper { return mCurrentActivity.get(); } + /** @deprecated DO NOT USE, this method will be removed in the near future. */ + public boolean isBridgeless() { + return false; + } + /** * Get the C pointer (as a long) to the JavaScriptCore context associated with this instance. Use * the following pattern to ensure that the JS context is not cleared while you are using it: