Skip to content

Problem: actionsheet changes flatlist on initial render #3397

@AlexCernik

Description

@AlexCernik

Every time I open the application and go to this screen, it jumps to the top; it only happens once each time I open the application.

The problem occurs when I have this

<Actionsheet useRNModal snapPoints={[70]} isOpen={state} onClose={handleClose}>
  <ActionsheetBackdrop />
  <ActionsheetContent className='px-2' >
    <ActionsheetDragIndicatorWrapper className='mb-2'>
      <ActionsheetDragIndicator />
    </ActionsheetDragIndicatorWrapper>
    <ActionsheetSectionHeaderText className='text-sm'>Configuración</ActionsheetSectionHeaderText>
    ...
  </ActionsheetContent>
</Actionsheet>

Video: https://drive.google.com/file/d/1-DLniSA2bVKEfeBkAz5wojvsLyj2ZfSW/view?usp=sharing

But the problem doesn't occur if I have this.

{state &&
  <Actionsheet useRNModal snapPoints={[70]} isOpen={true} onClose={handleClose}>
    <ActionsheetBackdrop />
    <ActionsheetContent className='px-2' >
      <ActionsheetDragIndicatorWrapper className='mb-2'>
        <ActionsheetDragIndicator />
      </ActionsheetDragIndicatorWrapper>
      <ActionsheetSectionHeaderText className='text-sm'>Configuración</ActionsheetSectionHeaderText>
      ...
    </ActionsheetContent>
  </Actionsheet>
}

Video: https://drive.google.com/file/d/15geBLDDjHb8VOdUJ5JYTBzd9z-2n18np/view?usp=sharing

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions