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

Can we replace the animation to our own designed animation? #80

Closed
jackyleehong opened this issue Apr 21, 2020 · 3 comments
Closed

Can we replace the animation to our own designed animation? #80

jackyleehong opened this issue Apr 21, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request released

Comments

@jackyleehong
Copy link

No description provided.

@nartc
Copy link
Owner

nartc commented Apr 21, 2020

Hi,

Interesting request. I believe one way is to have the consumers (you guys) provide the animated line as a component. I’ll think about how I want to provide that API

Thanks

@nartc nartc self-assigned this Apr 21, 2020
@nartc nartc added the enhancement New feature or request label Apr 21, 2020
@nartc nartc closed this as completed in b641a87 May 2, 2020
@nartc
Copy link
Owner

nartc commented May 2, 2020

BarcodeMask and BarcodeMaskWithOuter now have an additional prop called animatedComponent. It is a Render Prop and will be called with the computed width, height
and must return a ReactElement.

<BarcodeMask animatedComponent={(width, height) => <Text>Custom Animation Component</Text>} />

@nartc
Copy link
Owner

nartc commented May 2, 2020

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nartc nartc added the released label May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants