react-native-portal icon indicating copy to clipboard operation
react-native-portal copied to clipboard

Can't assign ref in react native 79 to children

Open itsnyx opened this issue 7 months ago • 1 comments

<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

itsnyx avatar Jun 02 '25 09:06 itsnyx