mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Implement RCTTextInlineImage with Nodes
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
This commit is contained in:
committed by
Ahmed El-Helw
parent
28efab0670
commit
31d2443dd4
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user