Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RN: Further Optimize
createAnimatedComponent
Summary: In addition to memoizing `mergedStyle` in `createAnimatedComponent`, this avoids unnecessary object allocations by: * Not allocating `passthroughProps`, created via a rest spread operator. It is unnecessary because we always override `style` in the JSX. * Not allocating a new object if either `style` or `passthroughStyle` are null or undefined. Also, create an array of the two style objects instead of spreading them, which is needless. Changelog: [General][Changed] - Improved performance of `Animated` components Reviewed By: sammy-SC Differential Revision: D56621191
- Loading branch information