ios - React Native ScrollView scrolling both directions -


i'm trying react native scrollview scroll horizontally , vertically, reason won't it. know doesn't work on android, supposed work on ios.

i've looked @ issue: https://github.com/facebook/react-native/issues/2962

and did suggested, still scrolls 1 direction.

this how have declared:

<scrollview directionallockenabled={false} horizontal={true} style={styles.container}>     {this.buildcontent()} </scrollview> 

any ideas on how scroll both directions?

there not direct way achieve this. if setting contentcontainerstyle prop not problem you, can go way. if is, can use 2 nested scrollviews.

<scrollview>    <scrollview horizontal={true}>        {this.buildcontent()}    </scrollview> </scrollview> 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -