Skip to content

Segmented.ScrollView Props type is not being built with children #7

@ronaldcurtis

Description

@ronaldcurtis

Current behavior

Typescript is emitting an error when using Segmented.ScrollView with children.

image

Expected behaviour

Should be able to use Segmented.ScrollView with children without any typescript issues.

Code sample

For Syntax Highlighting check this link

<Segmented.ScrollView>
  <Text>Hello world</Text>
</Segmented.ScrollView>

Screenshots (if applicable)

image

What have you tried

Can work around it by using <Segmented.FlatList>, but I'll eventually need to use <Segmented.ScrollView> in the future. I'm guessing it has something to do with how types are being built from this line:

https://github.com/PedroBern/react-native-collapsible-segmented-view/blob/main/src/ScrollComponents/ScrollView.tsx#L15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions