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 support for Roact17 #35

Merged
merged 14 commits into from
Nov 5, 2022
Merged

Add support for Roact17 #35

merged 14 commits into from
Nov 5, 2022

Conversation

chriscerie
Copy link
Owner

Add support for Roact17. The usage is almost identical - now you can use roact-spring's hooks without passing in a hook object.

local styles = RoactSpring.useSpring({
    color = if toggle then Color3.fromRGB(0, 0, 0) else Color3.fromRGB(255, 255, 255),
})

roact-hooks is still supported.

local styles = RoactSpring.useSpring(hooks, {
    color = if toggle then Color3.fromRGB(0, 0, 0) else Color3.fromRGB(255, 255, 255),
})

@chriscerie chriscerie added the enhancement New feature or request label Nov 3, 2022
@chriscerie chriscerie marked this pull request as ready for review November 5, 2022 22:17
@chriscerie chriscerie merged commit 3ee2e7a into main Nov 5, 2022
@chriscerie chriscerie deleted the support-roact17 branch November 5, 2022 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant