render() {
const { activeProjects } = this.state
// if (!activeProjects){null}
const sortHolder = (
<div className="sort-holder">
<button className="up" data-param="project" data-direction="up" />
<button className="down" data-param="project" data-direction="down" />
</div>
);
return (
<div className="unc-titles">
<div className="focus-header">
<div>
<span>Uncategorized</span>
<img src="../../../../../style/imgs/Icon_info.svg" alt="" />
</div>
<div className="search">
<input placeholder="Search" type="text" />
<img src="../../../../../style/imgs/Search.svg" alt="" />
</div>
</div>
<div className="focus-wrapper">
<div>
<span>Projects</span>
{sortHolder}
</div>
<div>
<span>Keywords</span>
{sortHolder}
</div>
</div>
activeProjects&& activeProjects.length &&
activeProjects.map((project, i) =>
(<div key={i} className="focus-projects">
<div className="unc-focus-line">
<div className="unc-focus-item">
<img src={project.iconSrc} alt="icon" />
<div>
<p>{project.Name}</p>
<span>12 App Opens | 3242 Switches</span>
</div>
</div>
<div className="unc-focus-keywords">
<span>3 keywords > ?</span>
</div>
<div className="unc-focus-settings">
<img src="../../../../../style/imgs/icon_dots.svg" alt="dots" />
</div>
</div>
</div>)
)
</div>
);
}
}
this.props.navigation.navigate('Details', {
itemId: 86,
otherParam: 'anything you want here',
});
const INJECTED_JAVASCRIPT = `(function() {
document.body.style.background = color;
})();`;
<WebView
source={{ uri: 'https://facebook.github.io/react-native' }}
injectedJavaScript={INJECTED_JAVASCRIPT}
onMessage={this.onMessage}
/>