mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
31d2443dd4
Summary: React allows nesting <Image> inside <Text>, in which case it turns into an RCTTextInlineImage element. RNFeed is using it in a few places and thus we need to support it, too. This diff implements it with InlineImageSpan (WithPipeline, and WithDrawee separately). Reviewed By: ahmedre Differential Revision: D2792569
32 lines
817 B
Java
32 lines
817 B
Java
/**
|
|
* 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;
|
|
|
|
/**
|
|
* ViewManager that creates instances of RCTTextInlineImage.
|
|
*/
|
|
/* package */ final class RCTTextInlineImageManager extends VirtualViewManager<RCTTextInlineImage> {
|
|
|
|
@Override
|
|
public String getName() {
|
|
return "RCTTextInlineImage";
|
|
}
|
|
|
|
@Override
|
|
public RCTTextInlineImage createShadowNodeInstance() {
|
|
return new RCTTextInlineImage();
|
|
}
|
|
|
|
@Override
|
|
public Class<RCTTextInlineImage> getShadowNodeClass() {
|
|
return RCTTextInlineImage.class;
|
|
}
|
|
}
|