mirror of
https://github.com/balzack/databag.git
synced 2025-02-18 22:19:20 +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 { AudioAsset } from './audioAsset/AudioAsset';
|
||||||
import { VideoAsset } from './videoAsset/VideoAsset';
|
import { VideoAsset } from './videoAsset/VideoAsset';
|
||||||
import Carousel from 'react-native-reanimated-carousel';
|
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 }) {
|
export function TopicItem({ item, focused, focus, hosting, remove, update, block, report, contentKey }) {
|
||||||
|
|
||||||
const { state, actions } = useTopicItem(item, hosting, remove, 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}
|
onRequestClose={actions.hideCarousel}
|
||||||
>
|
>
|
||||||
<View style={styles.modal}>
|
<View style={styles.modal}>
|
||||||
|
<GestureHandlerRootView>
|
||||||
<Carousel
|
<Carousel
|
||||||
loop
|
loop
|
||||||
width={state.width}
|
width={state.width}
|
||||||
@ -233,6 +234,7 @@ export function TopicItem({ item, focused, focus, hosting, remove, update, block
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
)} />
|
)} />
|
||||||
|
</GestureHandlerRootView>
|
||||||
</View>
|
</View>
|
||||||
</Modal>
|
</Modal>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user