ScreenOrientation.lockAsync not working while modal open

Please provide the following:

  1. SDK Version: expo v39.0.0
  2. Platforms(Android/iOS/web/all): iOS

ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT);
does not work when Modal from ‘react-native’ is visible.
The app was in landscape, but when Modal opens, the app instantly turn back to portrait.