mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
aba4ec0c09
Reviewed By: yungsters Differential Revision: D7962462 fbshipit-source-id: 0afe2092af8703895de91a6d1400315c3173aa6d
34 lines
803 B
JavaScript
34 lines
803 B
JavaScript
/** @format */
|
|
|
|
import React, {Component} from 'react';
|
|
import {Image, Platform, StyleSheet} from 'react-native';
|
|
|
|
import ListItem from '../../components/ListItem';
|
|
import WelcomeText from './WelcomeText';
|
|
|
|
export default class WelcomeScreen extends Component {
|
|
static navigationOptions = {
|
|
title: 'Welcome',
|
|
// You can now set header: null on any component to hide the header
|
|
header: Platform.OS === 'ios' ? undefined : null,
|
|
tabBarIcon: ({tintColor}) => (
|
|
<Image
|
|
// Using react-native-vector-icons works here too
|
|
source={require('./welcome-icon.png')}
|
|
style={[styles.icon, {tintColor: tintColor}]}
|
|
/>
|
|
),
|
|
};
|
|
|
|
render() {
|
|
return <WelcomeText />;
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
icon: {
|
|
width: 30,
|
|
height: 26,
|
|
},
|
|
});
|