You can customize the styling of GestureViewer.
GestureViewer
import { GestureViewer } from 'react-native-gesture-image-viewer'; function App() { return ( <GestureViewer width={400} height={400} containerStyle={ { /* ... */ } } backdropStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.90)' }} renderContainer={(children, { dismiss }) => <View style={{ flex: 1 }}>{children}</View>} /> ); }
width
Dimensions width
height
Dimensions height
containerStyle
flex: 1
backdropStyle
backgroundColor: black; StyleSheet.absoluteFill;
renderContainer(children, helpers)
<GestureViewer />
Use onSingleTap for fullscreen tap handling. renderContainer is best for composing surrounding UI such as headers, close buttons, and toolbars.
onSingleTap
renderContainer