UNPKG

react-native-media-viewing

Version:

React Native modal component for viewing images and video as a sliding gallery

17 lines (16 loc) 656 B
/** * Copyright (c) JOB TODAY S.A. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import React from "react"; import { ScrollView, NativeTouchEvent, NativeSyntheticEvent } from "react-native"; import { Dimensions } from "../@types"; /** * This is iOS only. * Same functionality for Android implemented inside usePanResponder hook. */ declare function useDoubleTapToZoom(scrollViewRef: React.RefObject<ScrollView>, scaled: boolean, screen: Dimensions): (event: NativeSyntheticEvent<NativeTouchEvent>) => void; export default useDoubleTapToZoom;