JesperLekland / react-native-svg-charts

📈 One library to rule all charts for React Native 📊
MIT License
2.36k stars 409 forks source link

why not showing flatList and lineChart #605

Open Jin-seop opened 1 year ago

Jin-seop commented 1 year ago

What is the problem?

I want to know why the tag has to wrap flatList and lineChart.

When does it happen?

when both not cover tag

What platform?

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>
3. showing

<Animated.ScrollView horizontal={true} showsHorizontalScrollIndicator={false} bounces={false} alwaysBounceHorizontal={false} nestedScrollEnabled={true} onScroll={onScroll}

.....

</Animated.ScrollView>