Currently developers using expo (which is the recommended path by React Native) must add a config plugin to modify the AppDelegate.mm file in ios/projectname/. This is dangerous since it must use regex and an expectation that could change.
Expo's npm modules and other's npm modules have adapted to ensure reliable functionality of their modules.
The readme points out exactly what must be added: https://docs.expo.dev/config-plugins/development-and-debugging/#ios-appdelegate manually. Thus to automate this, we can add a swizzle method. I think this would remove the manual step of adding #import orientation.h as well since that would go in the swizzle method from my limited understanding.
See https://docs.expo.dev/config-plugins/development-and-debugging/#ios-appdelegate for more information