diff --git a/app/views/SetUsernameView.js b/app/views/SetUsernameView.js index 920f2ddcc..a6b7bc4cf 100644 --- a/app/views/SetUsernameView.js +++ b/app/views/SetUsernameView.js @@ -50,7 +50,7 @@ class SetUsernameView extends React.Component { saving: false }; const { server } = this.props; - props.navigation.setParams({ title: server }); + props.navigation.setOptions({ title: server }); if (!isTablet) { Orientation.lockToPortrait(); } diff --git a/app/views/StatusView.js b/app/views/StatusView.js index 210ecc4af..78c63b85f 100644 --- a/app/views/StatusView.js +++ b/app/views/StatusView.js @@ -56,20 +56,6 @@ const styles = StyleSheet.create({ }); class StatusView extends React.Component { - static navigationOptions = ({ route }) => ({ - title: I18n.t('Edit_Status'), - headerLeft: () => {})} />, - headerRight: () => ( - - {})} - testID='status-view-submit' - /> - - ) - }) - static propTypes = { user: PropTypes.shape({ id: PropTypes.string, @@ -86,8 +72,24 @@ class StatusView extends React.Component { const { statusText } = props.user; this.state = { statusText, loading: false }; + this.setHeader(); + } - props.navigation.setParams({ submit: this.submit, close: this.close }); + setHeader = () => { + const { navigation } = this.props; + navigation.setOptions({ + title: I18n.t('Edit_Status'), + headerLeft: () => , + headerRight: () => ( + + + + ) + }); } submit = async() => {