react-native/Libraries
Kyle Corbitt b65f1f2234 Use elevation to implement shadows on Android
Summary: This PR includes a working interface to Android's `elevation` property implemented as an RN style. Elevation is the only (easy) [platform-supported way to create shadows](http://developer.android.com/training/material/shadows-clipping.html). For it to work note that you must be running on Android 5.0+, and add `elevation` to a view with a `backgroundColor` set. These are platform limitations.

This PR is not intended to be merged in its current state, but rather to inform the discussion from #2768. At a minimum, before merging we would need to add the elevation style to the docs and rebase this to master (**EDIT** I have now rebased on master because from v0.14.2 too many commits were being pulled in -- haven't tested it since the rebase though). Additionally, it might be good to add tests, although I couldn't find any for the Android code. I'm happy to get that done if this feature gets signed off by the React Native team.

Finally, as I argued in #2768 I think that `elevation` is a useful abstraction ov
Closes https://github.com/facebook/react-native/pull/4180

Reviewed By: svcscm

Differential Revision: D2684746

Pulled By: mkonicek

fb-gh-sync-id: 825f3ccd20c4b0eea9d11b5f0e3a6b018b7e4378
2015-11-25 18:28:29 -08:00
..
ART Mark `-[init]` w RCT_NOT_IMPLEMENTED 2015-11-14 06:29:27 -08:00
ActionSheetIOS Added Subject to ActionSheetIOS share options and updated example 2015-11-19 08:42:31 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Fixed Typo 2015-11-18 08:10:30 -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 Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
Components Use elevation to implement shadows on Android 2015-11-25 18:28:29 -08:00
CustomComponents Fix move gesture handling. 2015-11-23 09:20:28 -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 Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
Image Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -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 Set navigator.product to ReactNative 2015-11-25 12:45:28 -08:00
LayoutAnimation [ReactNative] Remove POPAnimation 2015-08-20 22:24:28 -07:00
LinkingIOS Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -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 Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
Picker Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
Portal [RN] add clarifying Android-only comment to Portal 2015-08-31 11:10:45 -08:00
PullToRefresh Open source SwipeRefreshLayoutAndroid 2015-11-24 10:15:14 -08:00
PushNotificationIOS Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
RKBackendNode [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactIOS RN: Add "Dismiss All" to YellowBox 2015-11-24 11:37:31 -08:00
ReactNative Defer rendering events popover until required 2015-11-25 04:15:27 -08:00
Sample Remove invariant of Sample.ios.js that is not used 2015-05-26 18:25:00 -07:00
Settings Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
Storage Revert 3770f061c832 for further investigation 2015-11-25 05:24:28 -08:00
StyleSheet enable the minWidth/maxWidth/minHeight/maxHeight features 2015-11-17 10:58:32 -08:00
Text Fix flaky scrolling for TextInput when using rich text 2015-11-24 15:38:27 -08:00
Utilities Fix logging JSAppRequireTime 2015-11-24 10:20:28 -08:00
Vibration Text highlighting on iOS 2015-07-24 08:41:58 -08:00
WebSocket Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
react-native Open source SwipeRefreshLayoutAndroid 2015-11-24 10:15:14 -08:00
vendor send fatal error for js exception in eventEmitter 2015-11-23 13:52:27 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00