react-native/Libraries
Janic Duplessis 61483aa15d Add support for elevation in DrawerLayoutAndroid
Summary:It didn't work for a few reason. First, the drawer view NEEDS to have a background color or no shadow will ever render. Second, we need to use the `setDrawerElevation` method instead of `setElevation` for DrawerLayout. Finally we need to actually pass the style value (maybe we could just pass elevation but I don't really think it can cause any issues) down to the native component as it is not the case at the moment.

I also added a default style to elevation of 16 which is the standard for material design according to https://www.google.com/design/spec/patterns/navigation-drawer.html#navigation-drawer-specs. I could also default it to 0 so it keeps the same appearance as before but I think it looks better this way.

Closes #6022
**Test plan**
Tested using the DrawerLayout in the UIExplorer app.

Before, elevation 0
<img width="420" alt="screen shot 2016-02-23 at 1 55 42 am" src="https://cloud.githubusercontent.com/assets/2677334/13244000/008afdb2-d9d1-11e5-95b8-9c345ea0ea8d.png">

After, elevation
Closes https://github.com/facebook/react-native/pull/6100

Reviewed By: bestander

Differential Revision: D3012242

Pulled By: lexs

fb-gh-sync-id: 4967d7ec920f0229d823032ba95c8a3cace329c6
shipit-source-id: 4967d7ec920f0229d823032ba95c8a3cace329c6
2016-03-21 06:24:33 -07:00
..
ART Fixed ART background color 2016-01-08 15:42:32 -08:00
ActionSheetIOS Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Remove invalid comma from Animated example 2016-03-20 11:02:27 -07:00
AppRegistry Update FBSource to use Flow 0.22 2016-03-08 12:39:29 -08:00
AppState Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
AppStateIOS Updating AppState to support the inactive state. 2016-03-10 08:30:24 -08:00
BatchedBridge Implement Android's dispatchViewManagerCommand interface on iOS 2016-01-06 05:58:37 -08:00
CameraRoll fix warning about async CameraRoll.getPhotos 2016-03-18 10:21:23 -07:00
Components Add support for elevation in DrawerLayoutAndroid 2016-03-21 06:24:33 -07:00
CustomComponents Add missing conditional to ListView. 2016-03-17 12:11:25 -07:00
DebugComponentHierarchy Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Device Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Devtools RN: Fix Exponential WebSocket Growth from DevTools 2016-03-07 19:20:25 -08:00
Experimental <Incremental> for incremental rendering 2016-03-10 08:14:23 -08:00
Fetch Reject promise if network request failed 2016-03-08 16:37:24 -08:00
Geolocation Geolocation Accuracy and Cached Location Bug 2016-03-08 05:17:21 -08:00
Image Add center ImageResizeMode option 2016-03-19 11:25:24 -07:00
Inspector fix RCTPerfMonitor display unit error 2016-02-26 04:54:32 -08:00
Interaction <Incremental> for incremental rendering 2016-03-10 08:14:23 -08:00
JavaScriptAppEngine Setup RCTNativeAppEventEmitter on init 2016-03-15 03:45:33 -07:00
LayoutAnimation Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Linking Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
LinkingIOS Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Modal Revert changes to Modal.js styling 2016-03-19 14:21:22 -07:00
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
NavigationExperimental Simplify <NavigationCard />. 2016-03-15 15:59:26 -07:00
Network Fix fbsource errors 2016-03-09 16:54:24 -08:00
Picker Add position to Picker onValueChange's call 2016-02-19 06:50:33 -08:00
Portal Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
PullToRefresh Deprecate PullToRefreshViewAndroid and remove it from the website 2016-02-21 16:17:36 -08:00
PushNotificationIOS Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
RKBackendNode Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
ReactIOS Update FBSource to use Flow 0.22 2016-03-08 12:39:29 -08:00
ReactNative Update FBSource to use Flow 0.22 2016-03-08 12:39:29 -08:00
Sample Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Settings Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Storage add examples that demonstrate how to use mergeItem, multiMerge, multi… 2016-03-14 17:38:22 -07:00
StyleSheet Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Text backout (and remove) props.lineBreakMode from Text 2016-03-17 11:48:24 -07:00
Utilities inline `__accept` call so that sourcemaps work 2016-03-20 17:39:22 -07:00
Vibration vibration module 2016-03-03 04:08:31 -08:00
WebSocket Backed out changeset 183744d2415b 2016-03-15 11:49:28 -07:00
react-native vibration module 2016-03-03 04:08:31 -08:00
vendor Fix breakages caused by switch to fbjs 2016-03-02 08:26:33 -08:00
Promise.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00