Not able to change default
And how to change the fontSize ?
Non of these requirements documented in the documentation.
Need to add custom icon in list with the default list properties. and need to change default
| software | version
| --------------------- | -------
| react-native | 0.57.0
| react-native-paper | 2.1.3
Hi, it is not possible to change size of List.Icon. In such case please use custom component e.g:
import { List } from 'react-native-paper';
import Icon from 'react-native-vector-icons/MaterialIcons';
<List.Item
left={props => <Icon {...props} size={30} name="event" />}
title="List item 1"
/>
Hi, it is not possible to change size of List.Icon. In such case please use custom component e.g:
import { List } from 'react-native-paper'; import Icon from 'react-native-vector-icons/MaterialIcons'; <List.Item left={props => <Icon {...props} size={30} name="event" />} title="List item 1" />
What about the title and description fontSize?
Render custom component:
title={<Text style={{ fontSize: 30 }}>Some text here</Text>}
@Trancever How to insert image instead of icon on the left of the row?
Just pass Image component instead of Icon.
Most helpful comment
Hi, it is not possible to change size of List.Icon. In such case please use custom component e.g: