mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable TurboModules for FB4A
Summary: ## Summary If a NativeModule Spec interface extends `TurboModule`, we want to make the auto-generated Java base class for that NativeModule to implement `com.facebook.react.turbomodule.core.interfaces.TurboModule`. This makes it so that our Android code recognizes that Java module as a TurboModule. When this diff lands, all internal FB4A NativeModules will start going through the TurboModule system. Reviewed By: fkgozali Differential Revision: D15327683 fbshipit-source-id: e295dafdab7a0e130820318aeaf0cafa41487689
This commit is contained in:
committed by
Facebook Github Bot
parent
764fd955db
commit
7b9c456e7d
@@ -67,4 +67,9 @@ public abstract class BaseJavaModule implements NativeModule {
|
||||
public boolean hasConstants() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cleanup Logic for TurboModuels
|
||||
public void invalidate() {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user