Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

React Native Paper the List.Accordion I can put the Icon

$
0
0

Objective

I am using the library react-native-paper and I am using the List components, but in the List.Accordion appears one strange image at the right position, I would like to put an icon arrow down in the place. But the List.Accordion just receive the left prop and no the right prop.

{bleDevices.length > 0 && (<List.Section><List.Accordion              title="Dispositivos encontrados"              left={props => <Icon name="arrow-down" size={24} />}>              {_.map(bleDevices, (device, index) => (<List.Item                  key={index}                  title={`${device.name || 'device'} (${device.rssi}) `}                  description={`${device.localName} (${device.id})`}                  right={props => (<Button onPress={toggleConnectDevice(device.name)}>                      Conectar</Button>                  )}                />              ))}</List.Accordion></List.Section>        )}

Image

enter image description here


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>