mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Delete unused method exposed in BaseJavaModule (#36907)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36907 Delete unused method exposed in BaseJavaModule bypass-github-export-checks Changelog: [Android][Removed] Delete hasConstants() method from BaseJavaModule Reviewed By: philIip Differential Revision: D44678688 fbshipit-source-id: 9fd15f2097a6251fd2cf6c81c89370dd18c6bd6c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
65bf785e5b
commit
bbc3657ff4
-5
@@ -56,17 +56,12 @@ public abstract class BaseJavaModule implements NativeModule {
|
||||
|
||||
@Override
|
||||
public boolean canOverrideExistingModule() {
|
||||
// TODO(t11394819): Make this final and use annotation
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCatalystInstanceDestroy() {}
|
||||
|
||||
public boolean hasConstants() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* The CatalystInstance is going away with Venice. Therefore, the TurboModule infra introduces the
|
||||
* invalidate() method to allow NativeModules to clean up after themselves.
|
||||
|
||||
+3
-2
@@ -67,8 +67,9 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
* For the vast majority of ViewManagers, you will not need to override this. Only override this
|
||||
* if you really know what you're doing and have a very unique use-case.
|
||||
*
|
||||
* @param viewToUpdate
|
||||
* @param props
|
||||
* @param viewToUpdate {@link T} View instance that will be updated with the props received by
|
||||
* parameter.
|
||||
* @param props {@link ReactStylesDiffMap} props to update the view with
|
||||
*/
|
||||
public void updateProperties(@NonNull T viewToUpdate, ReactStylesDiffMap props) {
|
||||
final ViewManagerDelegate<T> delegate = getDelegate();
|
||||
|
||||
Reference in New Issue
Block a user