title: How to show for text More/Less in React-Naitve (Javascript)
body: <p>I am developing react-native application. In that, We are showing some description on <strong>Text</strong>, It may be number of lines.</p>
  
  <p>So, If data has more than 3 lines, I have to show More and Less if it's expanded.</p>
  
  <pre><code>        &lt;FlatList
            style={styles.faltList}
            showsVerticalScrollIndicator
            data={data}
            extraData={this.state}
            renderItem={({ item, index }) =&gt; (
              &lt;View style={styles.flatListCell}&gt;
                  &lt;Text style={styles.description}&gt;{item.description}&lt;/Text&gt;
                &lt;/View&gt;
              &lt;/View&gt;
            )
            }
            ItemSeparatorComponent={() =&gt; (
              &lt;View style={{ height: 10}} /&gt;
            )}
          /&gt;
  </code></pre>
  
  <p>I have found <strong>react-native-view-more-text</strong> library, But I would like to implement it by custom code.</p>
  
  <p>Note: I am displaying that Text in Flatlist.</p>
  
  <p>Any suggestions?</p>