I found a solution to the lightbox not resizing correctly when the orientation is changed. It uses 2 new values named deviceWidth and deviceHeight which are wrapped in a useState hook. Also I added a useEffect hook which listens to event changes. Then in openStyle, in width and height I changed the outputRange to use deviceWidth and deviceHeight.
This was an open ticket in the original react-native-lightbox repo: Ticket Link
I found a solution to the lightbox not resizing correctly when the orientation is changed. It uses 2 new values named deviceWidth and deviceHeight which are wrapped in a useState hook. Also I added a useEffect hook which listens to event changes. Then in openStyle, in width and height I changed the outputRange to use deviceWidth and deviceHeight.
This was an open ticket in the original react-native-lightbox repo: Ticket Link
useEffect hook for listening for changes in window.width and window.height
useState hooks for deviceWidth and deviceHeight
Then in openStyle, in width and height I changed the outputRange to use deviceWidth and deviceHeight