import React, { Component } from ‘react’;
import {
AppRegistry,
StyleSheet,
Text,
Button,
View
} from ‘react-native’;
import { SearchBar } from ‘react-native-elements’;
import { List, ListItem, Divider } from ‘react-native-elements’
// import { SideMenu, List, ListItem } from ‘react-native-elements’;
class FollowupScreen extends Component {
someFunction() {
console.log(' someFunction called');
}
static navigationOptions = {
title: 'Follow UP'
};
render() {
const { navigate } = this.props.navigation;
return (
<View>
<SearchBar
lightTheme
onChangeText={someFunction()}
placeholder='Type Here...'
/>
<List>
<ListItem
onPress={() => navigate('allProperties')}
title="All Properties"
leftIcon={{name: 'flight-takeoff'}}
color="rgba(0,122,255,1)"
/>
<ListItem
onPress={() => navigate('Contract')}
title="Contract Settings"
leftIcon={{name: 'flight-takeoff'}}
/>
<ListItem
onPress={() => navigate('Subscription')}
title="Credit Card & Subscription"
leftIcon={{name: 'flight-takeoff'}}
/>
<Divider style={{ backgroundColor: 'white', height: 20 }} />