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

Support reanimated 3.3.0 & Expo 0.49 in example #151

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

cam-shaw
Copy link
Contributor

@cam-shaw cam-shaw commented Aug 7, 2023

Firstly - thanks @Amurmurmur for their work on the following PR that helped resolve an issue I had with line interpolation in Reanimated 3.x
#149

Is based off of #148, which has a simple package fix that resolves a crash.

Description
Adds support for react-native-reanimated 3.3.0.
Updating the x position and index while using snapToPoint was broken in reanimated 3.3.0.
This PR also improves performance of the snapToPoint functionality by moving some function calls from out of the scale function (which was being called every x position change). The changes can be seen in this file src/charts/line/Cursor.tsx

I have also updated the readme for snapToPoint prop to add a message about it only being supported in React Native. I observed it not working on web and thought this would be good to call out in the docs.

Cameron Shaw and others added 2 commits August 7, 2023 11:21
* Added comment for snapToPoint that this only works on React Native. This is due to how the cursor functions on web and apparently issues with useAnimatedGestureHandler not firing until user presses.
@arancauchi arancauchi merged commit 1841c1c into coinjar:master Dec 22, 2023
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