Skip to content

Add Swizzle method to app delegate to improve developer experience for expo developers #300

Description

@paul-rinaldi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions