mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove usage of "this" in a callback in RCTNativeModule
Summary: As RCTNativeModule can be destructed at any time, it's unsafe to capture "this" in a callback. Reviewed By: javache Differential Revision: D5963728 fbshipit-source-id: c80a01c851d97813e4fead2b31c442eaeb8ae204
This commit is contained in:
committed by
Facebook Github Bot
parent
ef2e29f54c
commit
d07279c978
@@ -26,7 +26,6 @@ class RCTNativeModule : public NativeModule {
|
||||
private:
|
||||
__weak RCTBridge *m_bridge;
|
||||
RCTModuleData *m_moduleData;
|
||||
MethodCallResult invokeInner(unsigned int methodId, const folly::dynamic ¶ms);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user