import { Pressable, Text, Image, Dimensions } from "react-native"; import React from "react"; import { connect } from "react-redux"; import * as Linking from "expo-linking"; //style import tw from "tailwind-rn"; import fontSize from "../../../constants/fontSize"; import Colors from "../../../constants/Colors"; const { width, height } = Dimensions.get("window"); const Book = ({ book, mobile, theme, orientation }) => { return ( Linking.openURL(`https://ar.dnvn.ir/lunch?id=${book?.product?.ARId}`) } > {book?.name} ); }; const mapStateToProps = (state) => ({ mobile: state.publicApi.mobile, theme: state.publicApi.theme, orientation: state.publicApi.orientation, }); export default connect(mapStateToProps)(Book);