For AI agents: the complete documentation index is available at /2.x/ko/llms.txt, the full documentation bundle is available at /2.x/ko/llms-full.txt, and this page is available as Markdown at /2.x/ko/guide/usage/style-customization.md.
v3 정식 출시. 변경 사항 보기
  • 한국어
  • 2.x
  • 스타일 커스터마이징

    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 />를 레핑하는 커스텀 래퍼 컴포넌트를 지정할 수 있습니다.
    Tip

    전체 화면 탭 처리는 onSingleTap 사용을 권장합니다. renderContainer는 헤더, 닫기 버튼, 툴바처럼 주변 UI를 구성할 때 가장 잘 맞습니다.