From d0489720f9c4b130a877c6729c376abf62285a8c Mon Sep 17 00:00:00 2001 From: bozdoz Date: Tue, 5 Sep 2017 13:08:04 -0700 Subject: [PATCH] Added styles.viewPager to complete example code Summary: Otherwise, you're met with a bewildering blank page. :D (Write your motivation here.) (Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!) Closes https://github.com/facebook/react-native/pull/15754 Differential Revision: D5768992 Pulled By: hramos fbshipit-source-id: 39a9f7c208d635e089751015dcf2536144ec0176 --- Libraries/Components/ViewPager/ViewPagerAndroid.android.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js index 3d267bf4a..6e5bde8df 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js @@ -61,6 +61,9 @@ export type ViewPagerScrollState = $Enum<{ * * var styles = { * ... + * viewPager: { + * flex: 1 + * }, * pageStyle: { * alignItems: 'center', * padding: 20,