mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
a0268a7bfc
Summary: This adds the basic support for embedding an image in a TextView. Implementation details : We create a ReactTextInlineImageShadowNode whenever an Image is embedded within a Text context. That uses the same parsing code as ReactImageView (copied, not shared) to parse the source property to figure out the Uri where the resource is. In ReactTextShadowNode we now look for the ReactTextInlineImageShadowNode and place a TextInlineImageSpan so that we can layout appropriately Later at the time we go to setText on the TextView, we update that TextInlineImageSpan so that the proper Drawable (downloaded via Fresco) can be shown public Reviewed By: mkonicek Differential Revision: D2652667 fb-gh-sync-id: 8f24924d204f78b8bc4d5d67835cc73b3c1859dd