title: .map() function inside ternary in react native jsx
body: <p>Sorry this is newbie question, usually using <code>&lt;List&gt;{this.state.variable.map...}&lt;/List&gt;</code> when in the component.But how to use .map function/any function inside conditional rendering in ternary operator?It was gave error syntax when using this syntax in below</p>
  
  <p>Code:</p>
  
  <pre><code>{group.category !== "place" ? 
                  &lt;ListItem
                    title={"Foods"}
                    leftIcon={{
                      name: "food",
                      type: "material-community",
                      color: this.state.themeStore.primaryDarkColor
                    }}
                    subtitle={group.category}
                    subtitleStyle={{
                      color: this.state.themeStore.primaryDarkColor
                    }}
                    titleStyle={{ color: this.state.themeStore.primaryDarkColor }}
                    onPressRightIcon={() =&gt; {
                      this.showFoodsItem();
                    }}
                    rightIcon={{
                      name: "md-arrow-dropdown-circle",
                      type: "ionicon",
                      color: this.state.themeStore.primaryLightColor
                    }}
                  /&gt;
  
                  this.state.foods.map((item, i) =&gt; (
                    &lt;ListItem
                      key={i}
                      title={item.name}
                      titleStyle={{
                        color: this.state.themeStore.primaryDarkColor
                      }}
                      avatar={{ uri: item.imageSource }}
                      rightIcon={{
                        name: "md-add-circle",
                        type: "ionicon",
                        color: this.state.themeStore.primaryLightColor
                      }}
                      onPressRightIcon={() =&gt; this.addExistingPlace(item)}
                    /&gt;
                  )
   : (
                  &lt;View /&gt;
                )}
  </code></pre>