akveo / akveo/react-native-ui-kitten

card footer not displaying

Offen
#1,514 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @greenfrvr Auf GitHub ansehen
:bug: Bug
Vorherrschende Sprache
TypeScript
Sterne
10.7k
Forks
962
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi there,

I am using the card component on an react native expo deployment of UiKitten, and for some reason, the footer is not displaying in the card. I am not sure if it is because of the way I have hard-coded the height of the card or something else. I am following the demo to include a card and both a header and footer:

Footer code:
```
const Footer = (props) => (

Test Footer


);
```

Card code:
```

Ford and GM Scale Back Production Amid Chip Shortage
Wall Street Journal
}
footer={
Footer
}
>


```

Style code:
```
const styles = StyleSheet.create({
topContainer: {
flexDirection: 'column',
justifyContent: 'space-between',
},
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},

card: {
margin: 10,
height: 300
},
cardImage: {
width: '100%',
height: '100%',
resizeMode: 'cover'

},
footerContainer: {
flexDirection: 'row',
justifyContent: 'flex-end',
},
footerControl: {
marginHorizontal: 2,
},
});
```
This is the output:

![IMG_30C9532F7C91-1](https://user-images.githubusercontent.com/8473417/132578151-17da5441-08f5-475a-81cd-818905c4bb59.jpeg)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.