Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Modernize RCTBridgeModule import, for Swift-modules compatibility #22

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

chrisbobbe
Copy link
Contributor

This fixes several compilation errors with "Duplicate interface
definition for class […]" when a project uses Expo 44+, which has
Swift modules.

I don't expect this to be a breaking change. Reportedly, it's safe
to use

#import <React/*.h>

with React Native 40+; see comment linked below. This project
already uses an import of that form. See the line

#import <React/RCTUtils.h>

in the same file changed in this commit.

Details:
expo/expo#15622 (comment)

This fixes several compilation errors with "Duplicate interface
definition for class […]" when a project uses Expo 44+, which has
Swift modules.

I don't expect this to be a breaking change. Reportedly, it's safe
to use

  #import <React/*.h>

with React Native 40+; see comment linked below. This project
already uses an import of that form. See the line

  #import <React/RCTUtils.h>

in the same file changed in this commit.

Details:
  expo/expo#15622 (comment)
@vonovak vonovak merged commit 6b751bb into vonovak:master Jul 10, 2022
@vonovak
Copy link
Owner

vonovak commented Jul 10, 2022

thank you! :)

@chrisbobbe chrisbobbe deleted the pr-expo-44-compatibility branch July 11, 2022 16:45
@chrisbobbe chrisbobbe restored the pr-expo-44-compatibility branch July 11, 2022 16:45
@chrisbobbe chrisbobbe deleted the pr-expo-44-compatibility branch July 11, 2022 17:20
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Jul 14, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Jul 23, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Jul 25, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Aug 12, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Aug 31, 2022
gnprice pushed a commit to chrisbobbe/zulip-mobile that referenced this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants