You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using v2.3.2 and trying to use a card with title with a image background, am I correct in to assume Card.FeaturedTitle is the correct way to go for this? However, I can't get it to work, most combinations end up in either the title, image or both not showing up, here's my current code:
import React from 'react';
import { View, Text } from 'react-native';
import { Card } from 'react-native-elements';
function RenderDish(props) {
const dish = props.dish;
if (dish != null) {
return(
<Card>
<Card.FeaturedTitle>
<Card.Image source={require('./images/uthappizza.png')} />
{dish.name}
</Card.FeaturedTitle>
<Text style={{margin: 10}}>
{dish.description}
</Text>
</Card>
);
} else {
return(
<View></View>
);
}
}
function Dishdetail(props) {
return(
<RenderDish dish={props.dish} />
);
}
export default Dishdetail
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently using v2.3.2 and trying to use a card with title with a image background, am I correct in to assume Card.FeaturedTitle is the correct way to go for this? However, I can't get it to work, most combinations end up in either the title, image or both not showing up, here's my current code:
Beta Was this translation helpful? Give feedback.
All reactions