title: Can I get a text value between tags in React-Native markup
body: <p>Is it possible to access a text value from inside a html tag from a child component in react native without using a prop? ...</p>
  
  <pre><code>render() {
   return (
    &lt;View style={[styles.container]}&gt;
      &lt;BoxItem&gt;Hello&lt;/BoxItem&gt;
    &lt;/View&gt;
   );
  }
  </code></pre>
  
  <p>I would like to use the value "Hello" in the html markup in my BoxItem component? Here is the BoxItem component:</p>
  
  <pre><code>import React, { Component } from 'react';
  import { View, Text } from 'react-native';
  import PropTypes from 'prop-types';
  import styles from './styles';
  
  class BoxItem extends Component {
  
      static propTypes = {
          id: PropTypes.string,
      };
  
      render() {
          return (
              &lt;View style={[styles.itemStyles]}&gt;
                  &lt;Text&gt;{html_value}&lt;/Text&gt;
              &lt;/View&gt;
          );
      }
  }
  
  export default BoxItem;
  </code></pre>
  
  <p>How can I pass the variable that contains the value "Hello" instead of my placeholder <code>{html_value}</code>? </p>
  
  <p>I could use a prop on the boxItem property, but I'm just wondering if this is possible.</p>