android viewpager - React-Navite nested IndicatorViewPager not working -


i'm using react-native-viewpager, create nested pagers. parent view pager working fine, each nested view rendering right way, in 1 of them have view pager , 1 doesn't render childrens.

                 <view style={{flex:1}}>                     <indicatorviewpager                          ref='viewpager'                          style={{flex:1, backgroundcolor:'black'}}                          initialpage={0}                         <view                              style={{flex:1, backgroundcolor:'pink'}}>                             <text>page 1</text>                         </view>                         <view                              style={{flex:1, backgroundcolor:'blue'}}>                             <text>page 2</text>                         </view>                     </indicatorviewpager>                 </view> 

i have tried workarounds of viewpagerandroid including static height , width , linked style properties state, noting works.
however... accidentally rotated device , noticed child viewpager worked after that.
tl;dr can resumed to:

nested indicatorviewpager doesn't work (even supposed workarounds) until device rotated , view recreated.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -