import React from 'react'; import { View, Text, Image, SafeAreaView } from 'react-native'; import PropTypes from 'prop-types'; import I18n from '../../i18n'; import openLink from '../../utils/openLink'; import Button from './Button'; import styles from './styles'; import LoggedView from '../View'; /** @extends React.Component */ export default class OnboardingView extends LoggedView { static propTypes = { navigator: PropTypes.object } constructor(props) { super('CreateChannelView', props); } connectServer = () => { this.props.navigator.push({ screen: 'NewServerView', backButtonTitle: '', navigatorStyle: { navBarHidden: true } }); } joinCommunity = () => { this.props.navigator.push({ screen: 'NewServerView', backButtonTitle: '', passProps: { server: 'https://open.rocket.chat' }, navigatorStyle: { navBarHidden: true } }); } createWorkspace = () => { openLink('https://cloud.rocket.chat/trial'); } render() { return ( {I18n.t('Welcome_to_RocketChat')} {I18n.t('Open_Source_Communication')}