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

add React to dependency #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

roycclu
Copy link

@roycclu roycclu commented May 29, 2018

fixes issue #23

@yupferris
Copy link

I'm also experiencing #23, and have confirmed that this patch fixes the issue locally. Would be nice to get this merged+published.

yupferris added a commit to yupferris/react-native-background-timer that referenced this pull request Jul 20, 2018
Depending on which modules are built and in which order, `React/RCTBridgeModule.h` may or may not be available. Some workarounds for this include disabling parallel builds (https://stackoverflow.com/a/43340802), manually linking against the library instead of using cocoapods (ocetnik#87 (comment)), changing the way source files are imported (https://stackoverflow.com/a/41664041), and some others. These workarounds appear to fundamentally disregard the actual problem, which is that these React Native packages all depend on React, and need to be built after the React package has been built. So let's describe this dependency so the build system can solve the issue for us consistently.

Another example of this same issue/fix with another React Native package can be found [here](charlires/react-native-segment-analytics#33).

Fixes ocetnik#87.
@michaelisgro
Copy link

I'm experiencing this issue also. Getting this merged would be good.

idris added a commit to Truebill/react-native-segment-analytics that referenced this pull request Aug 31, 2018
Inspired by charlires#33

Apparently this worked fine with Cocoapods 1.4.0, but with Cocoapods 1.5.0 we need to specify the dependency on React.
ocetnik/react-native-background-timer#82 (comment)
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.

3 participants