mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
ab81db65c5
Reviewed By: mkonicek Differential Revision: D4522116 Ninja: oss only fbshipit-source-id: d17e0e8badcfe97eaea092e5d5274e02904a534d
44 lines
791 B
JavaScript
44 lines
791 B
JavaScript
'use strict';
|
|
|
|
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',
|
|
header: {
|
|
visible: Platform.OS === 'ios',
|
|
},
|
|
tabBar: {
|
|
icon: ({ 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,
|
|
},
|
|
});
|