Skip to content

Commit d03f3bc

Browse files
committed
add org names to the title bar
1 parent 648eb38 commit d03f3bc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

source/views/student-orgs/detail.android.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ const styles = StyleSheet.create({
5555
})
5656

5757
export class StudentOrgsDetailView extends React.Component {
58+
static navigationOptions = ({navigation}) => {
59+
const {org} = navigation.state.params
60+
return {
61+
title: org.name,
62+
}
63+
}
64+
5865
props: TopLevelViewPropsType & {
5966
navigation: {state: {params: {org: StudentOrgType}}},
6067
}

source/views/student-orgs/detail.ios.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ const styles = StyleSheet.create({
4848
})
4949

5050
export class StudentOrgsDetailView extends React.Component {
51+
static navigationOptions = ({navigation}) => {
52+
const {org} = navigation.state.params
53+
return {
54+
title: org.name,
55+
}
56+
}
57+
5158
props: TopLevelViewPropsType & {
5259
navigation: {state: {params: {org: StudentOrgType}}},
5360
}

0 commit comments

Comments
 (0)