...
|
...
|
@@ -64,14 +64,16 @@ class PostingContainer extends Component{ |
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
if (this.props.section.name.length && this.props.section.id>0) {
|
|
|
this.boardSelectedWithName(this.props.section.name,this.props.section.id);
|
|
|
|
|
|
}else {
|
|
|
if (this.props.section.sid>-1) {
|
|
|
let section = this.props.section.items.get(this.sid);
|
|
|
this.boardSelectedWithName(section.name,section.id);
|
|
|
} else {
|
|
|
InteractionManager.runAfterInteractions(() => {
|
|
|
this._onGetBordList();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (shouldHideTabBar(this.props.navigationState)) {
|
|
|
NativeModules.YH_CommunityHelper.hideTabBar();
|
|
|
}
|
...
|
...
|
@@ -120,6 +122,11 @@ class PostingContainer extends Component{ |
|
|
this.props.actions.contentEdited (content);
|
|
|
}
|
|
|
render() {
|
|
|
let fromSection=false;
|
|
|
if (this.props.section.sid>-1) {
|
|
|
let section = this.props.section.items.get(this.sid);
|
|
|
fromSection = section.name.length && section.id>0;
|
|
|
}
|
|
|
return(
|
|
|
<View style={styles.container}>
|
|
|
<Posting
|
...
|
...
|
@@ -132,7 +139,7 @@ class PostingContainer extends Component{ |
|
|
contentEdited={this.contentEdited}
|
|
|
titleValue={this.props.posting.title}
|
|
|
contentValue={this.props.posting.content}
|
|
|
fromSection={this.props.section.name.length && this.props.section.id>0}
|
|
|
fromSection={fromSection}
|
|
|
/>
|
|
|
</View>
|
|
|
);
|
...
|
...
|
|