Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this.state = {
username: '',
saving: false
};
const { server } = this.props;
props.navigation.setParams({ title: server });
Orientation.lockToPortrait();
}
componentDidMount() {
Orientation.lockToPortrait();
};
constructor(props) {
super('OnboardingView', props);
BackHandler.addEventListener('hardwareBackPress', this.handleBackPress);
this.previousServer = props.navigation.getParam('previousServer');
Orientation.lockToPortrait();
}