import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { IInfoLayerProps } from '../../types'; export default function InfoLayer({ info, overallOffset, }: IInfoLayerProps) { return ( {info.map( (v, i) => v.end && v.info?.text && ( {v.info?.text} ), )} ); } const styles = StyleSheet.create({ container: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }, });