Just started learning react-native,
I have created one separate file flexdemo.js and created component as below:
import React, { Component } from \'react
If you have if else statement in your render() function use !! like this:
if else
render()
!!
{!! (this.state.your_state) && Your Text }
instead of:
{(this.state.your_state) && Your Text }