react-native-svg-charts icon indicating copy to clipboard operation
react-native-svg-charts copied to clipboard

why not showing flatList and lineChart

Open Jin-seop opened this issue 1 year ago • 0 comments

What is the problem?

I want to know why the <Svg/> tag has to wrap flatList and lineChart.

When does it happen?

when both not cover <Svg/> tag

What platform?

  • [x] iOS
  • [x] Android

react-native version: "0.71.7 react-native-svg-charts version: ^5.4.0 react-native-svg version: ^13.11.0

Code to reproduce

1.not showing

 <Animated.ScrollView
            horizontal={true}
            showsHorizontalScrollIndicator={false}
            bounces={false}
            alwaysBounceHorizontal={false}
            nestedScrollEnabled={true}
            onScroll={onScroll}
          >
            <FlatList
             ...
            />
            <Svg>
              <LineChart>
                   .....
              </LineChart>
            </Svg>
          </Animated.ScrollView>


  1. not showing
 <Animated.ScrollView
            horizontal={true}
            showsHorizontalScrollIndicator={false}
            bounces={false}
            alwaysBounceHorizontal={false}
            nestedScrollEnabled={true}
            onScroll={onScroll}
          >
            <FlatList
             ...
            />
              <LineChart ....>
                   .....
              </LineChart>
          </Animated.ScrollView>


  1. showing
 <Animated.ScrollView
            horizontal={true}
            showsHorizontalScrollIndicator={false}
            bounces={false}
            alwaysBounceHorizontal={false}
            nestedScrollEnabled={true}
            onScroll={onScroll}
          >
           <Svg>
            <FlatList
             ...
            />
              <LineChart ....>
                   .....
              </LineChart>
           </Svg>
          </Animated.ScrollView>

Jin-seop avatar Sep 08 '23 09:09 Jin-seop