Added type definition file and useNativeDriver prop (default: false) #19
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.
This PR implements the following:
useNativeDriver
prop that defaults toFALSE
.I should have checked the existing PRs first (there are 2 others that implement a prop to enable the native Animation driver and it appears someone even forked the library and published to npm since the other PRs haven't been merged). Still going to submit this PR since it includes a type definition file and prop descriptions (although it's doing the bare minimum to get that to work).
If you want to use this fork without waiting on PR approval then remove your existing installation and install it from the fork:
Afterwards, your package.json should look like:
(this concept will also work with the other forks, or forked npm packages in general)
Examples:
Note: in case anyone doesn't already know, make sure to check back on PRs where you've done a package install directly from GitHub to ensure your libraries are always up to date. Unfortunately this library looks like it might no longer be maintained [ @adorableio ?]