intergalacticspacehighway / react-native-reanimated-zoom

Component for zooming react native views. 🔎
MIT License
315 stars 19 forks source link

Add `createZoomListWithReanimatedComponent` API #12

Closed intergalacticspacehighway closed 2 years ago

intergalacticspacehighway commented 2 years ago

Resolves

Adds a new API createZoomListWithReanimatedComponent that uses animatedProps instead of state to set scrollEnabled on ScrollView. https://github.com/intergalacticspacehighway/react-native-reanimated-zoom/issues/10

Usage

const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);
const ZoomFlatList = createZoomListWithReanimatedComponent(AnimatedFlatList);