mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +00:00
fixing media carousel scroll in android
This commit is contained in:
parent
532c7fac9e
commit
72a502204e
@ -13,7 +13,7 @@ import { ImageAsset } from './imageAsset/ImageAsset';
|
||||
import { AudioAsset } from './audioAsset/AudioAsset';
|
||||
import { VideoAsset } from './videoAsset/VideoAsset';
|
||||
import Carousel from 'react-native-reanimated-carousel';
|
||||
|
||||
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
||||
export function TopicItem({ item, focused, focus, hosting, remove, update, block, report, contentKey }) {
|
||||
|
||||
const { state, actions } = useTopicItem(item, hosting, remove, contentKey);
|
||||
@ -212,6 +212,7 @@ export function TopicItem({ item, focused, focus, hosting, remove, update, block
|
||||
onRequestClose={actions.hideCarousel}
|
||||
>
|
||||
<View style={styles.modal}>
|
||||
<GestureHandlerRootView>
|
||||
<Carousel
|
||||
loop
|
||||
width={state.width}
|
||||
@ -233,6 +234,7 @@ export function TopicItem({ item, focused, focus, hosting, remove, update, block
|
||||
)}
|
||||
</View>
|
||||
)} />
|
||||
</GestureHandlerRootView>
|
||||
</View>
|
||||
</Modal>
|
||||
</View>
|
||||
|
Loading…
Reference in New Issue
Block a user