mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor Runnable C++ class to compile in OSS
Summary: This diff refactors the class Runnable into a struct to make it work in OSS changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D22963704 fbshipit-source-id: 2212c8f1e4a62b2bcad5c061709e29b247454fc1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d1d42475e9
commit
61a16fe1b6
@@ -27,7 +27,7 @@ BackgroundExecutor JBackgroundExecutor::get() {
|
||||
->getMethod<void(Runnable::javaobject)>("queueRunnable");
|
||||
|
||||
auto jrunnable = JNativeRunnable::newObjectCxxArgs(std::move(runnable));
|
||||
method(self, static_ref_cast<Runnable>(jrunnable).get());
|
||||
method(self, static_ref_cast<Runnable::javaobject>(jrunnable).get());
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user