I do not have any icon when writting this:
<Button
icon={{
source: 'archive'
}}
mode="text"
color={colors.white}
title="Tap to undo"
uppercase
>
Tap to undo
</Button>
I expect to have the same behavior as in here:
<Button
icon="archive'
mode="text"
color={colors.white}
title="Tap to undo"
uppercase
>
Tap to undo
</Button>
I tried to do a snack, but icon are not displayed : https://snack.expo.io/@kopax/courageous-hummus
| software | version
| --------------------- | -------
| ios or android | all
| react-native | expo sdk36
| react-native-paper | 3.6.0
| node | 13.5.0
| npm or yarn | 6.13.7
| expo sdk | 36
You should pass direction in icon object
See the docs
<Button
icon={{
source: 'archive',
direction: 'rtl'
}}
mode="contained"
uppercase
>
Thanks a lot
Most helpful comment
You should pass
directionin icon objectSee the docs