react-native/Libraries
Dave Miller a0268a7bfc Initial checkin for Image within Text nodes
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
2015-11-13 11:16:27 -08:00
..
ART Expose additional private modules 2015-11-05 03:35:18 -08:00
ActionSheetIOS Fixed display of alerts on top of modal window 2015-11-05 03:54:31 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Fix breakages when upgrading to babel 6 2015-11-10 10:56:48 -08:00
AppRegistry [React Native] Provide a way to get a list of registered apps in AppRegistry 2015-08-07 11:05:25 -08:00
AppStateIOS revert D2372548 to fix initial app state issue 2015-09-25 13:25:26 -07:00
BatchedBridge Adding jest tests to groups rn 2015-08-31 17:35:47 -08:00
CameraRoll Improved and generalized image thumbnail decoding logic 2015-11-10 05:04:34 -08:00
Components Add setPageWithoutAnimation 2015-11-13 08:05:27 -08:00
CustomComponents Ensure row key uniqueness for listview with sections 2015-11-13 08:15:59 -08:00
DebugComponentHierarchy [ReactNative] Send debug component ownership info in createView 2015-06-25 05:47:24 -08:00
Device flowify some Libraries 2015-03-25 11:09:54 -08:00
Devtools Use pre-bundled elements inspector 2015-10-29 11:21:32 -07:00
Fetch Add fetch's clone function to Request and Response prototypes 2015-10-30 10:57:33 -07:00
Geolocation Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
Image Initial checkin for Image within Text nodes 2015-11-13 11:16:27 -08:00
Inspector [react-native] enable react devtools from JavascriptCore 2015-07-23 17:14:09 -08:00
Interaction Make InteractionManager.runAfterInteractions() return a Promise 2015-11-09 20:14:26 -08:00
JavaScriptAppEngine Ensure exceptions from route generation are reported 2015-11-09 09:13:27 -08:00
LayoutAnimation [ReactNative] Remove POPAnimation 2015-08-20 22:24:28 -07:00
LinkingIOS Open source IntentAndroid 2015-11-12 12:41:32 -08:00
Modal Make <Modal> visible by default 2015-10-30 17:09:27 -07:00
NativeApp [ReactNative] Add "RCTNativeAppEventEmitter" 2015-05-15 16:57:18 -08:00
Network Send HEADERS_RECEIVED and LOADING events on Android 2015-11-13 07:28:28 -08:00
Picker Fixed PickerIOS onChange event 2015-09-08 03:34:33 -08:00
Portal [RN] add clarifying Android-only comment to Portal 2015-08-31 11:10:45 -08:00
PushNotificationIOS Add support for cancelAllLocalNotifications 2015-10-16 10:57:25 -07:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Custom logic blocks for RCTTestRunner's runTest: method 2015-11-13 08:38:31 -08:00
RKBackendNode [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactIOS Fixed: Move out setupDevtools call from renderApplication function 2015-11-05 08:50:29 -08:00
ReactNative Fix open source 2015-11-07 11:41:20 -08:00
Sample Remove invariant of Sample.ios.js that is not used 2015-05-26 18:25:00 -07:00
Settings Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Storage Fix AsyncStorage error multiplexing 2015-10-28 12:03:26 -07:00
StyleSheet Expose additional private modules 2015-11-05 03:35:18 -08:00
Text Add keyboardAppearance prop to TextInput component. 2015-11-11 05:38:35 -08:00
Utilities RN: Remove BackAndroid Warning 2015-11-12 13:24:27 -08:00
Vibration Text highlighting on iOS 2015-07-24 08:41:58 -08:00
WebSocket Command line flags to start RN apps in web executor mode. 2015-11-06 14:53:28 -08:00
react-native Open source IntentAndroid 2015-11-12 12:41:32 -08:00
vendor JS: Remove Throwing Collection Checks (rFBOBJC) 2015-11-12 19:38:31 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00