Where do I add code to AppDelegate.m


#1

Could anyone please help me,
I’m developing an IOS App on a windows machine using Expo.
I’ve installed the react-native-orientation module but in order to configure it I need to add some code to AppDelegate.m.
Where can I find this file?
Thank you


#2

Hi -

You can’t edit the native code with an Expo app unless you detach using ExpoKit.

You won’t be able to do this on a Windows machine unfortunately.
https://docs.expo.io/versions/v16.0.0/guides/detach.html

We are adding runtime orientation lock in an upcoming version but not sure exactly when.

In the meantime you can configure orientation for your project in exp.json or app.json.

Charlie