diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java index 2ea0cb4d1fc5b3..773a0e2b7ed9c6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java @@ -169,6 +169,7 @@ public class JavaMethod implements NativeMethod { public JavaMethod(Method method) { mMethod = method; + mMethod.setAccessible(true); Class[] parameterTypes = method.getParameterTypes(); mArgumentExtractors = buildArgumentExtractors(parameterTypes); mSignature = buildSignature(parameterTypes); @@ -354,6 +355,7 @@ public class SyncJavaHook implements SyncNativeHook { public SyncJavaHook(Method method) { mMethod = method; + mMethod.setAccessible(true); mSignature = buildSignature(method); }