expose pageMargin prop on ViewPagerAndroid

Reviewed By: sahrens

Differential Revision: D3145366

fb-gh-sync-id: 6412d51a698b2c932c915e405e4bbc35e96060dc
fbshipit-source-id: 6412d51a698b2c932c915e405e4bbc35e96060dc
This commit is contained in:
Felix Oghina
2016-04-07 18:08:29 -07:00
committed by Facebook Github Bot 0
parent 7a1b07291a
commit 6038040f8e
3 changed files with 28 additions and 3 deletions

View File

@@ -1,4 +1,11 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
@@ -162,6 +169,7 @@ var ViewPagerAndroidExample = React.createClass({
onPageScroll={this.onPageScroll}
onPageSelected={this.onPageSelected}
onPageScrollStateChanged={this.onPageScrollStateChanged}
pageMargin={10}
ref={viewPager => { this.viewPager = viewPager; }}>
{pages}
</ViewPagerAndroid>