import * as React from "react"; import { Image, StyleSheet, Text, View } from "react-native"; import images from "../res/images"; interface Props { benefits: string[]; } interface State {} export default class InformationComponent extends React.PureComponent< Props, State > { constructor(props: Props) { super(props); this.state = {}; } public render(): React.ReactNode { return ( Unlimited Access Get access to all our features {this.props.benefits.map((benefit) => { return ( {benefit} ); })} ); } } const styles = StyleSheet.create({ iconStyle: { width: 24, height: 24, marginRight: 8, }, benefitWrapper: { marginTop: 25, width: "100%", paddingHorizontal: 30, }, subTitleStyle: { fontSize: 14, fontWeight: "500" }, headingStyle: { fontSize: 28, fontWeight: "600", marginTop: 5, }, wrapper: { alignItems: "center", marginTop: 5,}, });