Skip to content

Conversation

numandev1
Copy link

No description provided.

@mrousavy
Copy link
Owner

mrousavy commented Oct 4, 2021

how is the ShareableValue error fixed? by importing it at last?

@numandev1
Copy link
Author

@mrousavy Yes, fixed by import #include <RNReanimated/ShareableValue.h after #include <RNReanimated/RuntimeManager.h>

@goleary
Copy link

goleary commented Dec 27, 2021

@mrousavy I'm also experiencing this error use of undeclared identifier 'ShareableValue' which after locally moving the include of SharedValue.h after RuntimeManager.h resolves the build error.

It would be awesome to merge/ship this PR so that I don't have to patch/modify locally.

We're using react-native 0.66.0.

Thanks!

@callaars
Copy link

callaars commented Feb 17, 2022

Can we give this some attention because this is preventing me of using the library (unmodified)? Personally I'd get rid of the package changes though, and just focus on the .cpp.

#include <RNReanimated/Scheduler.h>
#include <RNReanimated/ShareableValue.h>
#include <RNReanimated/RuntimeManager.h>
#include <RNReanimated/ShareableValue.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to do the same on line #14 btw.

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.

4 participants