Skip to content

Commit

Permalink
Fix RCTAlertController import when embed in existing iOS projects (#3…
Browse files Browse the repository at this point in the history
…2457)

Summary:
Fixes a build error relating to RCTAlertController import when embedding react-native into existing iOS app. This PR resolves the issue detailed in #32356

## Changelog

Adjusts the import syntax which was added in:
f319ff3#diff-56beca6ee071cdd162c269ce765ab12d5af8c8c0ca840bca1e9d1f59e9fab790

Existing:
#import "RCTAlertController.h"

New:
#import <React/RCTAlertController.h>

[iOS] [Fix] - Fix RCTAlertController import build error when embedded in existing iOS projects

Pull Request resolved: #32457

Test Plan:
Build this branch in existing iOS project using swift, and should not have the build error described in the issue above.

Would also like to have this fix cherry-pick'd to release 0.63 after merging.

Reviewed By: RSNara

Differential Revision: D31861814

Pulled By: charlesbdudley

fbshipit-source-id: e60f80c8ea982e400cbf6d9375037d4197bbb8a3
  • Loading branch information
nickfujita authored and facebook-github-bot committed Nov 11, 2021
1 parent 751708d commit 614e602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/CoreModules/RCTAlertController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import <React/RCTUtils.h>

#import "RCTAlertController.h"
#import <React/RCTAlertController.h>

@interface RCTAlertController ()

Expand Down

0 comments on commit 614e602

Please sign in to comment.