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:
Denis Koroskin
2016-01-04 16:01:01 -08:00
committed by Ahmed El-Helw
parent 28efab0670
commit 31d2443dd4
8 changed files with 289 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ public class FlatUIImplementation extends UIImplementation {
viewManagers.add(new RCTTextManager());
viewManagers.add(new RCTRawTextManager());
viewManagers.add(new RCTVirtualTextManager());
viewManagers.add(new RCTTextInlineImageManager());
viewManagers.add(new RCTImageViewManager());
ViewManagerRegistry viewManagerRegistry = new ViewManagerRegistry(viewManagers);