Skip to content

Can't assign ref in react native 79 to children #59

Open
@itsnyx

Description

@itsnyx
<PortalProvider>
        <Portal>
          <View
            ref={view}
            style={{flex: 1, backgroundColor: theme.background}}
          />
        </Portal>
      </PortalProvider>


console.log('view', view.current);
outputs :
LOG : view null

this happens in react native 79 i did not have issue with this in react native 75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions