react-native-draggable-flatlist
react-native-draggable-flatlist copied to clipboard
Type {children} has no properties in common with type 'IntrinsicAttributes & ScrollViewProps'
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
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>
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.