Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i increase the fontsize of the items inside the FlatList ? #16157

Closed
PManager1 opened this issue Oct 1, 2017 · 2 comments
Closed

How can i increase the fontsize of the items inside the FlatList ? #16157

PManager1 opened this issue Oct 1, 2017 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.

Comments

@PManager1
Copy link

PManager1 commented Oct 1, 2017

return (
        <FlatList
          data={this.props.properties}
          renderItem={({ item }) => (
            <ListItem onPress={()=>navigate('editProperty',{item})}
              roundAvatar
              title={`${item.agent_name} `}
              subtitle={`${item.address}, ${item.city}`}
              style={styles.row_alternate}
              containerStyle={{ borderBottomWidth: 0 }}
            />
          )}
          keyExtractor={item => item._id}
          ItemSeparatorComponent={this.renderSeparator}
          ListHeaderComponent={this.renderHeader}
          ListFooterComponent={this.renderFooter}
          onRefresh={this.handleRefresh}
          refreshing={this.state.refreshing}
          onEndReached={this.handleLoadMore}
          onEndReachedThreshold={50}
        />
);

}

const styles = StyleSheet.create({
row_alternate: {
padding: 20,
backgroundColor: 'white',
fontSize: 90,
},
});

I tried,

<FlatList
data={this.props.properties}
renderItem={({ item }) => (
<ListItem style={{backgroundColor: 'blue', flex: 0.3}} onPress={()=>navigate('editProperty',{item})}
roundAvatar
title={${item.agent_name} }
subtitle={${item.address}, ${item.city}}
style={styles.row_alternate}
containerStyle={{ borderBottomWidth: 0, backgroundColor: 'blue' }}
/>

@chirag04
Copy link
Contributor

chirag04 commented Oct 3, 2017

@facebook-github-bot stack-overflow

@facebook-github-bot
Copy link
Contributor

Hey @jpca999, thanks for posting this! @chirag04 tells me this issue looks like a question that would be best asked on Stack Overflow. Stack Overflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. See "What to Expect from Maintainers".

@facebook-github-bot facebook-github-bot added the Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. label Oct 3, 2017
@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 3, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants