mirror of
https://github.com/status-im/react-native.git
synced 2025-01-21 23:09:22 +00:00
50 lines
908 B
JavaScript
50 lines
908 B
JavaScript
|
import React, { Component } from 'react';
|
||
|
import {
|
||
|
Image,
|
||
|
Platform,
|
||
|
StyleSheet,
|
||
|
Text,
|
||
|
View,
|
||
|
} from 'react-native';
|
||
|
|
||
|
import ListItem from '../../components/ListItem';
|
||
|
|
||
|
export default class FriendListScreen extends Component {
|
||
|
|
||
|
static navigationOptions = {
|
||
|
title: 'Friends',
|
||
|
header: {
|
||
|
visible: Platform.OS === 'ios',
|
||
|
},
|
||
|
tabBar: {
|
||
|
icon: ({ tintColor }) => (
|
||
|
<Image
|
||
|
// Using react-native-vector-icons works here too
|
||
|
source={require('./friend-icon.png')}
|
||
|
style={[styles.icon, {tintColor: tintColor}]}
|
||
|
/>
|
||
|
),
|
||
|
},
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<View style={styles.container}>
|
||
|
<Text>A list of friends here.</Text>
|
||
|
</View>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const styles = StyleSheet.create({
|
||
|
container: {
|
||
|
backgroundColor: 'white',
|
||
|
flex: 1,
|
||
|
padding: 16,
|
||
|
},
|
||
|
icon: {
|
||
|
width: 30,
|
||
|
height: 26,
|
||
|
},
|
||
|
});
|