import { Dimensions, PanResponder, StyleSheet, Text, View } from "react-native"; import React, { useEffect, useRef, useState } from "react"; import { setZoom } from "../../redux/UtilSlice"; import { useAppDispatch } from "../../redux/store"; import Slider from "@react-native-community/slider"; type Props = {}; const Zoom = (props: Props) => { const dispatch = useAppDispatch(); return ( dispatch(setZoom(val))} /> ); }; export default Zoom; const styles = StyleSheet.create({ zoomRoot: { position: "absolute", top: Dimensions.get("window").height / 2 - 50, right: -70, height: 50, width: 200, zIndex: 4, alignItems: "center", justifyContent: "center", transform: [ { rotate: "270deg", }, ], }, slider: { height: 100, width: 100, }, });