react-native/Libraries/Components
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
..
ActivityIndicatorIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
Clipboard Annotate Clipboard module 2016-02-15 10:05:34 -08:00
DatePicker Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
DatePickerAndroid Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
DrawerAndroid Add support for elevation in DrawerLayoutAndroid 2016-03-21 06:24:33 -07:00
Intent Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
MapView Removed unnecessary exportedConstants 2016-03-10 10:21:34 -08:00
Navigation Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Picker Add position to Picker onValueChange's call 2016-02-19 06:50:33 -08:00
ProgressBarAndroid ProgressBarAndroid: default value for styleAttr 2016-01-07 12:02:37 -08:00
ProgressViewIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
RefreshControl RefreshControl refreshing prop and doc improvements 2016-03-13 03:04:24 -07:00
ScrollView Correct scrollEventThrottle docs 2016-03-20 09:52:22 -07:00
SegmentedControlIOS Update SegmentedControlIOS.ios.js 2016-03-20 18:07:23 -07:00
SliderIOS Add option for both min/max track image. 2015-12-21 10:30:39 -08:00
StatusBar Add StatusBar height constant and improve implementation 2016-03-17 16:54:26 -07:00
Switch pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
SwitchAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
SwitchIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TabBarIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TextInput Fixes #1509 -- Add note about side-specific properties on TextInput 2016-03-10 13:44:23 -08:00
TimePickerAndroid Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ToastAndroid Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ToolbarAndroid Added ColorPropType 2015-12-23 10:08:38 -08:00
Touchable Fix bug #5604 - Unrecognised signal for touchable no longer on the screen 2016-03-15 12:23:32 -07:00
UnimplementedViews Quick fix to require cycle in UnimplementedView 2015-11-23 14:14:32 -08:00
View Improve pointerEvents doc 2016-03-20 18:02:18 -07:00
ViewPager Add onPageScrollStateChanged for ViewPagerAndroid 2016-01-29 01:17:35 -08:00
WebView Added mediaPlaybackRequiresUserAction to WebView 2016-03-16 10:03:26 -07:00
ScrollResponder.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
StaticContainer.js Move stuff out of vendor/react_contrib/ 2015-10-12 11:18:30 -07:00
StaticRenderer.js [Haste] @provides -> @providesModule StaticRenderer 2015-05-14 08:42:13 -08:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00