diff --git a/src/ui/YooForumUI.js b/src/ui/YooForumUI.js index 5c91e20..6e78311 100644 --- a/src/ui/YooForumUI.js +++ b/src/ui/YooForumUI.js @@ -45,6 +45,17 @@ const styles = StyleSheet.create({ }, }); +function ForumTopic(props) { + return props.topics.map((topic, key) => ( + + )); +} + export default class YooForumUI extends Component { constructor(props) { super(props); @@ -134,14 +145,11 @@ export default class YooForumUI extends Component { this.setState({currentPosition: event.nativeEvent.contentOffset.y}) }> {this.props.hint === '' ? ( - this.props.topics.map((topic, key) => ( - - )) + ) : (