Add support for RCTImageView in FlatShadowHierarchyManager

Summary: @public This patch adds basic support for RCTImageView (only 'src', 'tintColor' and 'resizeMode' properties are supported for now), and a concept of AttachDetachListener that is required to support it to FlatUIImplementations.

Reviewed By: sriramramani

Differential Revision: D2564389
This commit is contained in:
Denis Koroskin
2015-12-11 22:44:38 -08:00
committed by Ahmed El-Helw
parent dfe5f9f762
commit 760422525e
14 changed files with 784 additions and 14 deletions

View File

@@ -0,0 +1,28 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.react.flat;
/* package */ final class RCTImageViewManager extends VirtualViewManager<RCTImageView> {
@Override
public String getName() {
return "RCTImageView";
}
@Override
public RCTImageView createShadowNodeInstance() {
return new RCTImageView(new DrawImageWithPipeline());
}
@Override
public Class<RCTImageView> getShadowNodeClass() {
return RCTImageView.class;
}
}