import React, { useState } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Marquee } from '@animatereactnative/marquee'; import { ElevationObject } from '../../../components/Button'; import TextView from '../../../components/TextView'; const PinMessage = ({ visible=false, title, message }) => { const [expand, setExpand] = useState(false) if (visible) return ( {title} { expand && {message} } setExpand(!expand)}/> ); else return <> } export default PinMessage; const styles = StyleSheet.create({ pinMessageCard: { top: 180, left: 16, right: 16, zIndex: 10, overflow: "hidden", borderRadius: 6, alignItems: "center", position: 'absolute', backgroundColor: colorLight, ...ElevationObject(3) }, textTitle: { color: textPrimary, fontSize: 16, fontWeight: "bold" }, textMessage: { color: textSecondary, padding: 8, fontSize: 14, marginBottom: -20 } })