...
|
...
|
@@ -176,6 +176,7 @@ export default function community(platform) { |
|
|
getSceneStyle={(props) => {
|
|
|
return this.navPushStyle(props);
|
|
|
}}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -199,6 +200,7 @@ export default function community(platform) { |
|
|
return store.getState().posting.inPosting;
|
|
|
}
|
|
|
}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -218,6 +220,7 @@ export default function community(platform) { |
|
|
hideNavBar={false}
|
|
|
component={MessageCenterContainer}
|
|
|
initial={false}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -226,6 +229,7 @@ export default function community(platform) { |
|
|
hideNavBar={false}
|
|
|
component={LikeMessageContainer}
|
|
|
initial={false}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -237,6 +241,7 @@ export default function community(platform) { |
|
|
rightTitle='确认'
|
|
|
onRight={this.settingOnRight}
|
|
|
rightButtonTextStyle={{color: 'white'}}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -258,6 +263,7 @@ export default function community(platform) { |
|
|
hideNavBar={false}
|
|
|
component={SubjectPostContainer}
|
|
|
initial={false}
|
|
|
onBack={this.onBack}
|
|
|
/>
|
|
|
|
|
|
<Scene
|
...
|
...
|
@@ -286,10 +292,10 @@ export default function community(platform) { |
|
|
}
|
|
|
}}
|
|
|
rightButtonTextStyle={[styles.barRightButtonText,{color:store.getState().posting.dataValid?'white':'#a0a0a0'}]}
|
|
|
onBack={()=>{
|
|
|
onBack={(navigationState) => {
|
|
|
let dismissKeyboard = require('dismissKeyboard');
|
|
|
dismissKeyboard();
|
|
|
Actions.pop();
|
|
|
this.onBack(navigationState);
|
|
|
}}
|
|
|
/>
|
|
|
|
...
|
...
|
@@ -302,8 +308,6 @@ export default function community(platform) { |
|
|
renderHomeTitle(navProps) {
|
|
|
let {width, height} = Dimensions.get('window');
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
<Animated.View style={[styles.title,]}>
|
|
|
<TouchableOpacity onPress={() => {
|
...
|
...
|
@@ -345,7 +349,6 @@ export default function community(platform) { |
|
|
/>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
|
|
|
<View style={{
|
|
|
backgroundColor: 'white',
|
|
|
position: 'absolute',
|
...
|
...
|
@@ -358,6 +361,15 @@ export default function community(platform) { |
|
|
);
|
|
|
},
|
|
|
|
|
|
onBack(navigationState) {
|
|
|
Actions.pop();
|
|
|
let children = navigationState.children;
|
|
|
let home = children[0];
|
|
|
if (children.length == 2 && home.sceneKey == 'Home') {
|
|
|
ReactNative.NativeModules.YH_CommunityHelper.showTabBar();
|
|
|
}
|
|
|
},
|
|
|
|
|
|
homeOnRight(state) {
|
|
|
state.dispatch(startEditPost(state.getPostingState()));
|
|
|
},
|
...
|
...
|
|