Ich habe eine Kopfzeile, die Komponente enthalten. Dieser Header sollte Schatten in Android und iOS haben. Es ist Arbeit auf iOS, aber nichts in Android zeigen.reagieren nativ: Ansicht nicht in Android angezeigt
class Toolbar extends Component {
render() {
return (
<View style={[styles.toolBar, this.props.style]}>
{this.props.children}
</View>
);
}
}
const styles = StyleSheet.create({
toolBar: {
zIndex: 1,
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
height: topBarHeight,
backgroundColor: colors.base,
elevation: 5,
shadowOpacity: 0.3,
shadowRadius: 1,
shadowOffset: {
height: 2,
width: 0
}
}
});
Ja, sie sind nur für iOS. – salam3224