react-native-picker-modal-view icon indicating copy to clipboard operation
react-native-picker-modal-view copied to clipboard

cant change the fonts

Open peyman-hakemi opened this issue 4 years ago • 2 comments

how can i change the font? i need to change items font, search font

i try renderListItem for changing the fonts for items like this

 renderListItem={data => <Text>{data.Name}</Text>}

but that's not working

peyman-hakemi avatar Jun 23 '20 09:06 peyman-hakemi

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.84. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jun 23 '20 09:06 issue-label-bot[bot]

I am also facing the same issue. Is there any option to change the text styling of rendered item after popup opens.

I can see there is a file ListItem.js in the plugin And changing this line and styling working React.createElement(Text, { style: [(defaultSelected && Name === defaultSelected.Name) && ListItemStyle.selected] }, Name))));

But there is no option as a property of the plugin

import * as React from 'react'; import { Text, View, TouchableOpacity } from 'react-native'; import { ListItemStyle } from '../Assets/Styles'; export class ListItemComponent extends React.PureComponent { render() { const { onSelectMethod, defaultSelected, list: { Name } } = this.props; return (React.createElement(TouchableOpacity, { style: ListItemStyle.container, activeOpacity: 0.7, onPress: () => onSelectMethod(this.props.list) }, React.createElement(View, { style: ListItemStyle.btnContainer }, React.createElement(Text, { style: [(defaultSelected && Name === defaultSelected.Name) && ListItemStyle.selected] }, Name)))); } } //# sourceMappingURL=ListItem.js.map

dalia89 avatar Jul 15 '20 04:07 dalia89