Custom Components
react-native-gesture-image-viewer offers powerful complete component customization. You can create gesture-supported items with not only images but any component you want.
Modal Components
You can create a viewer using any Modal of your choice as shown below:
List Components
Support for any list component like ScrollView, FlatList, FlashList through the ListComponent prop.
The listProps provides type inference based on the selected list component, ensuring accurate autocompletion and type safety in your IDE.
Content Components
You can inject various types of content components like expo-image, FastImage, etc., through the renderItem prop to use gestures.
renderItem active state (isActive)
For content such as video that should play or perform work only while it is visible, use isActive from the third renderItem argument. It is true only for the currently selected content. During a page transition, the previous content remains active; when the move finishes, the newly selected content becomes active. Use useGestureViewerState instead when UI outside the item needs the global currentIndex.
