Skip to content

Commit

Permalink
Fix: Avoid path in the template import (facebook#35394)
Browse files Browse the repository at this point in the history
Summary:
Investigating [this comment](reactwg/react-native-releases#41 (comment)), I made some tests.
It seems like we can simply use `#import <RCTAppDelegate.h>` instead of the `#import <React-RCTAppDelegate/RCTAppDelegate.h>` in both setups:
- default setup
- `use_frameworks! :linkage => :static`

## Changelog

[iOS] [Fixed] - Support `use_framework! :linkage => :static` in template

Pull Request resolved: facebook#35394

Test Plan:
1. Manually tested with a new app
2. CircleCI
3. Sandcastle

Reviewed By: cortinico

Differential Revision: D41402060

Pulled By: cipolleschi

fbshipit-source-id: e1ed8196ed860b3663a88f5283f2745e39b0e944
  • Loading branch information
Riccardo Cipolleschi authored and OlimpiaZurek committed May 22, 2023
1 parent 1e361ca commit c9eebed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/ios/HelloWorld/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <React-RCTAppDelegate/RCTAppDelegate.h>
#import <RCTAppDelegate.h>
#import <UIKit/UIKit.h>

@interface AppDelegate : RCTAppDelegate
Expand Down

0 comments on commit c9eebed

Please sign in to comment.