Thank for this library.
I'm trying to wrap the text inside MenuItem so the totality of it is shown, now it is cut.
Here is my implementation:
return (
<View style={styles.container}>
<Menu
button={<View />}
style={{...styles.menu, backgroundColor: props.appTheme.SECONDARY_BG}}
ref={menu}>
{dataSource.map((item, index) => {
return (
<MenuItem
style={styles.menuItem}
key={index}
onPress={() => handlePressSearchItem(item)}>
<Text
style={{
color: props.appTheme.DEFAULT_FONT_COLOR,
flexWrap: 'wrap',
flex: 1,
}}>
{item.place_name}
</Text>
</MenuItem>
);
})}
</Menu>
</View>
);
const styles = StyleSheet.create({
container: {
// flex: 1,
// alignItems: 'center',
// justifyContent: 'center',
// position: 'absolute',
// width:'100%'
},
menu: {
width: '86%',
},
loadingItem: {
// alignItems:'center',
// justifyContent:'center',
// alignSelf:'center'
marginLeft: 20,
},
menuItem: {
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'center',
maxWidth: '100%',
},
});
Thanks.
Thank for this library.
I'm trying to wrap the text inside MenuItem so the totality of it is shown, now it is cut.
Here is my implementation:
Thanks.