mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deprecate CallerContext from ReactImageManager
Summary: This diff deprecates the constructors and getter method exposing CallerContext in ReactImageManager. This will be replaced by the ReactCallerContextFactory class Changelog: Deprecation of constructors and methods that expose CallerContext in ReactImageManager class Reviewed By: JoshuaGross Differential Revision: D18474012 fbshipit-source-id: d8190f938e00da0499bfef7e81522dc8022a8836
This commit is contained in:
committed by
Facebook Github Bot
parent
882e4a3f17
commit
8accd77c45
@@ -41,12 +41,22 @@ public class ReactImageManager extends SimpleViewManager<ReactImageView> {
|
||||
private final @Nullable Object mCallerContext;
|
||||
private final @Nullable ReactCallerContextFactory mCallerContextFactory;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link ReactImageManager#ReactImageManager(AbstractDraweeControllerBuilder,
|
||||
* ReactCallerContextFactory)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public ReactImageManager(
|
||||
@Nullable AbstractDraweeControllerBuilder draweeControllerBuilder,
|
||||
@Nullable Object callerContext) {
|
||||
this(draweeControllerBuilder, null, callerContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link ReactImageManager#ReactImageManager(AbstractDraweeControllerBuilder,
|
||||
* GlobalImageLoadListener, ReactCallerContextFactory)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public ReactImageManager(
|
||||
@Nullable AbstractDraweeControllerBuilder draweeControllerBuilder,
|
||||
@Nullable GlobalImageLoadListener globalImageLoadListener,
|
||||
@@ -87,6 +97,8 @@ public class ReactImageManager extends SimpleViewManager<ReactImageView> {
|
||||
return mDraweeControllerBuilder;
|
||||
}
|
||||
|
||||
/** @deprecated use {@link ReactCallerContextFactory} instead */
|
||||
@Deprecated
|
||||
public Object getCallerContext() {
|
||||
return mCallerContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user