UNPKG

ignite-jhipster

Version:

A React Native boilerplate for JHipster apps.

58 lines (51 loc) 1.45 kB
import React from 'react' import { ScrollView, Text, Image, View } from 'react-native' import { Navigation } from 'react-native-navigation' import { Images } from '../../shared/themes' import styles from './launch-screen.styles' export default class LaunchScreen extends React.Component { constructor (props) { super(props) Navigation.events().bindComponent(this) } componentDidAppear () { Navigation.mergeOptions(this.props.componentId, { sideMenu: { left: { enabled: true, visible: false } } }) } showSideMenu () { Navigation.mergeOptions(this.props.componentId, { sideMenu: { left: { visible: true } } }) } navigationButtonPressed ({ buttonId }) { this.showSideMenu() } render () { return ( <View style={styles.mainContainer} testID='launchScreen'> <Image source={Images.background} style={styles.backgroundImage} resizeMode='stretch' /> <ScrollView style={styles.container}> <View style={styles.centered}> <Image source={Images.logoJhipster} style={styles.logo} /> </View> <View style={styles.section} > <Image source={Images.ready} /> <Text style={styles.sectionText}> {'Welcome to your Ignite JHipster app.'} </Text> </View> </ScrollView> </View> ) } }