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

Removed Reanimated from the project #33

Merged
merged 4 commits into from
Sep 13, 2021
Merged

Conversation

sethduffin
Copy link
Contributor

This PR fixes an bug where the Android app crashes trying to add credentials to the db.
This is because Reanimated 2 requires Hermes to be enabled and Realm doesn’t support it.
Read more here: realm/realm-js#3837

app/hooks/useAnimation.ts Outdated Show resolved Hide resolved
range: InterpolateRange = [0, 1],
config: Partial<Animated.TimingAnimationConfig> = {},
): UseAnimationType {
const animationValue = useRef(new Animated.Value(0)).current;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a cool technique, I haven't seen useRef memoize a value like this before.

Copy link
Contributor Author

@sethduffin sethduffin Sep 13, 2021

Choose a reason for hiding this comment

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

Yeah, it's interesting. That's what the docs recommend:
https://reactnative.dev/docs/animated

@sethduffin sethduffin merged commit 77693c9 into main Sep 13, 2021
@sethduffin sethduffin deleted the seth/downgrade-reanimated branch September 13, 2021 16:23
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