Skip to content

[UIApplication delegate] must be used from main thread only #2

@kamelj

Description

@kamelj

Hello can you please find other way for this line in RCTPayfort.m:

UIViewController *nav = (UIViewController*)[UIApplication sharedApplication].delegate.window.rootViewController;

Application crashed and display this message:

This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.

Thanks :)

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