React-native-paper: how to use image props in card cover

Created on 7 Aug 2019  路  5Comments  路  Source: callstack/react-native-paper

Hi.
I'm trying to use in image props with card cover and its not working.

resizeMode={'stretch'}
/>

what i did wrong?
thanks

question

Most helpful comment

Yeiii . The Bug still there!! to solve i remove the resizeMode feature from styles.image on CardCover.tsx

image

Welcome.

You can change in node_modules if you want to:
node_modules/react-native-paper/src/components/Card/CardCover.tsx
comment line 93

All 5 comments

What prop doesn't work for you? Can you provide snack that reproduces issue?

Closing because of inactivity.

I am having the same issues using the resizeMode-prop:

Here is a snack demonstrating the issue
https://snack.expo.io/@kodefant/brave-cereal

It works fine on web, but does no change on iOS and Android.

Yeiii . The Bug still there!! to solve i remove the resizeMode feature from styles.image on CardCover.tsx

image

Welcome.

You can change in node_modules if you want to:
node_modules/react-native-paper/src/components/Card/CardCover.tsx
comment line 93

I have the same issue as @kodeFant

            <Card.Cover
                source={{ uri: thumbnail_800x800 }}
                resizeMode="contain"
            />

Works just fine on web, but doesn't resize on Android and iOS. Please re-open the issue @jayu

Was this page helpful?
0 / 5 - 0 ratings

Related issues

satya164 picture satya164  路  4Comments

scottybo picture scottybo  路  3Comments

sm2017 picture sm2017  路  4Comments

zxccvvv picture zxccvvv  路  4Comments

knobandre picture knobandre  路  4Comments