const React = require('react'); const { Image, Platform, SafeAreaView, StyleSheet, Text, View } = require('react-native'); class CocktailDetailsScreen extends React.Component { static options() { return { ...Platform.select({ android: { statusBar: { style: 'dark', backgroundColor: 'white' } } }), topBar: { title: { text: 'Cocktails' } } } } render() { return ( {this.props.name} {this.props.description} ); } } module.exports = CocktailDetailsScreen; const SIZE = 120; const HEADER = 150; const styles = StyleSheet.create({ root: { marginTop: 0 }, header: { marginTop: -HEADER, flexDirection: 'row', alignItems: 'flex-end', height: HEADER, }, backdrop: { height: HEADER, width: '100%', zIndex: 0 }, title: { fontSize: 32, color: 'whitesmoke', marginLeft: 16, marginBottom: 16, zIndex: 2 }, description: { fontSize: 15, letterSpacing: 0.2, lineHeight: 25, marginTop: 32, marginHorizontal: 24 }, image: { height: SIZE, width: SIZE, zIndex: 1, marginLeft: 24, marginBottom: -24 } });