React Native nested ScrollView locking up

后端 未结 5 1457
野趣味
野趣味 2021-01-30 17:03

I\'m trying to nest ScrollViews in React Native; a horizontal scroll with nested vertical scrolls.

Here\'s an example:

var Test = React.createClass({
           


        
5条回答
  •  后悔当初
    2021-01-30 17:42

    @IlyaDoroshin and @David Nathan's answer pointed me in the right direction but I had to wrap each item in the scrollview with a touchable, rather than one touchable for everything.

    
      ...
      
        {items.map(item => (
            
              { /* your scrollable content goes here */ }
            
        ))}
      
    
    

提交回复
热议问题