react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

Type {children} has no properties in common with type 'IntrinsicAttributes & ScrollViewProps'

Open dlehddnjs opened this issue 3 years ago • 2 comments
trafficstars

Describe the bug When using NestableScrolContainer with NestableDraggableFlatList, Error occurs in NestableScrollContainer, but it's still working on iOS Simulator & Android Device.

Error : Type {children: Element[]} has no properties in common with type 'IntrinsicAttributes & ScrollViewProps'

Code Example:

<NestableScrollContainer>
    <View />
    // FlatList 1
    <View />
    <NestableDraggableFlatList>
    </NestableDraggableFlatList>
    // FlatList 2
    <View />
    <NestableDraggableFlatList>
    </NestableDraggableFlatList>
</NestableScrollContainer>

Platform & Dependencies Please list any applicable dependencies in addition to those below (react-navigation etc).

  • react-native-draggable-flatlist version: 3.1.0
  • Platform: Both
  • React Native or Expo version: 0.64.1
  • Reanimated version: 2.4.1
  • React Native Gesture Handler version: 1.10.3

dlehddnjs avatar Apr 14 '22 00:04 dlehddnjs

can you create a snack that displays the issue? I cannot reproduce, and am confused about whether or not your example is complete--i.e. rendering a DraggableFlatList using opening/closing jsx with no props would throw an error for other reasons:

    <NestableDraggableFlatList>
    </NestableDraggableFlatList>

computerjazz avatar Apr 14 '22 17:04 computerjazz

Sorry for confuse you, actual source code is written like this.

<NestableScrollContainer>
    <View />
    // FlatList 1
    <View />
    <NestableDraggableFlatList 
        ...props 
     />
    </NestableDraggableFlatList>
    // FlatList 2
    <View />
    <NestableDraggableFlatList 
        ...props 
     />
</NestableScrollContainer>

I'm at work right now, so it can be delayed, but i will create a snack ASAP.

dlehddnjs avatar Apr 15 '22 01:04 dlehddnjs