feat(native/svg.tsx native/index.ts): implement 'interval' prop for RN #229
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: The current delay is same as the speed. After the change it is a quarter of the
speed by default.
Summary
Implement 'interval' prop for RN. It was only available on web.
Any Breaking Changes
Before this change, the interval prop was not supported and, in the RN version, there was a default delay equal to the speed of the animation, in the RN version of this module. Now that it is supported, we either have to leave the default behavior as it was (which means interval should have a default value of 1) or implement the same default behavior that web has (interval should have a default value of 0.25). The former is not a breaking change but introduces a discrepancy between web/RN and will be confusing for future users. The latter is a breaking change fo
r React Native users.
Checklist