I need this component to be a function to be able to use useAnimatedStyle when migrating to Reanimated 2
Details
Details
Teset that the gallery still works - its possible to send, queue, dequeue media. The animations seem to work as previously
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/reanimated
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Looks great!
native/media/media-gallery-media.react.js | ||
---|---|---|
57–65 ↗ | (On Diff #40462) | I think it would improve readability to use the same order that is defined in Props |
232 ↗ | (On Diff #40462) | Now that we have a function component, it's easier to memoize things. Can we memoize [mediaStyle, dimensionsStyle], to avoid passing a new style to AnimatedImage on every render? |